def rawsignattribute(attributeid, expiry): """(Advanced) Manually sign an attribute about an identity.""" transactions = Transactions() transactions.sign_attribute(attributeid, expiry) click.echo() click.echo("Transaction sent.")
def rawrevokeattribute(signatureid): """(Advanced) Manaully revoke your signature of an attribute.""" transactions = Transactions() transactions.revoke_signature(signatureid) click.echo() click.echo("Transaction sent.")
def revoke(signatureid): """Revoke one of your signatures.""" transactions = Transactions() transactions.revoke_signature(signatureid) click.echo() click.echo("Transaction sent.")
def add(attributetype, identifier, data): """Add an attribute to your identity.""" transactions = Transactions() transactions.add_attribute_with_hash(attributetype, False, identifier, data) click.echo() click.echo("Transaction sent.")
def rawaddattribute(attributetype, has_proof, identifier, data, datahash): """(Advanced) Manually add an attribute to your identity.""" transactions = Transactions() transactions.add_attribute(attributetype, has_proof, identifier, data, datahash) click.echo() click.echo("Transaction sent.")
def ipfsadd(attributetype, identifier, data): """Add an attribute to your identity over IPFS.""" transactions = Transactions() transactions.add_attribute_over_ipfs(attributetype, False, identifier, data) click.echo() click.echo("Transaction sent.")
def sign(attributeid, expires): """Sign an attribute.""" transactions = Transactions() expiry = int(time.time()) + expires * 60 * 60 * 24 transactions.sign_attribute(attributeid, expiry) click.echo() click.echo("Transaction sent.")
def ipfsaddpgp(keyid): """Add a PGP key attribute to your identity over IPFS.""" transactions = Transactions() click.echo() try: transactions.add_pgp_attribute_over_ipfs(keyid) except ValueError as e: click.echo("Error: " + str(e)) return click.echo("Transaction sent.")