From 27a3fddfa2c32922bd48a5e46bc95a90f24573e0 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 15 Aug 2016 21:39:34 +0300 Subject: [PATCH] gpg: add a note about restoring GPG keys with --time command-line flag --- trezor_agent/gpg/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trezor_agent/gpg/__main__.py b/trezor_agent/gpg/__main__.py index 3a170d5..bba0eb2 100755 --- a/trezor_agent/gpg/__main__.py +++ b/trezor_agent/gpg/__main__.py @@ -16,6 +16,9 @@ log = logging.getLogger(__name__) def run_create(args): """Generate a new pubkey for a new/existing GPG identity.""" 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, curve_name=args.ecdsa_curve) verifying_key = conn.pubkey(ecdh=False)