mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 05:36:42 +08:00
gpg: add a note about restoring GPG keys with --time command-line flag
This commit is contained in:
@@ -16,6 +16,9 @@ log = logging.getLogger(__name__)
|
|||||||
def run_create(args):
|
def run_create(args):
|
||||||
"""Generate a new pubkey for a new/existing GPG identity."""
|
"""Generate a new pubkey for a new/existing GPG identity."""
|
||||||
user_id = os.environ['TREZOR_GPG_USER_ID']
|
user_id = os.environ['TREZOR_GPG_USER_ID']
|
||||||
|
log.warning('NOTE: in order to re-generate the exact same GPG key later, '
|
||||||
|
'run this command with "--time=%d" commandline flag (to set '
|
||||||
|
'the timestamp of the GPG key manually).', args.time)
|
||||||
conn = encode.HardwareSigner(user_id=user_id,
|
conn = encode.HardwareSigner(user_id=user_id,
|
||||||
curve_name=args.ecdsa_curve)
|
curve_name=args.ecdsa_curve)
|
||||||
verifying_key = conn.pubkey(ecdh=False)
|
verifying_key = conn.pubkey(ecdh=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user