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 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.")