From 142fa5c8d564f6288bfa3231cf492dcb3d59d752 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 3 Jun 2021 16:15:00 +0200 Subject: readability --- siglog-witness.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/siglog-witness.py b/siglog-witness.py index 06a2c9c..3dd4422 100755 --- a/siglog-witness.py +++ b/siglog-witness.py @@ -302,7 +302,8 @@ def ensure_sigkey(fn): except FileNotFoundError: print("INFO: Signing key file {} not found -- generating new signing key".format(fn)) signing_key = nacl.signing.SigningKey.generate() - print("INFO: verification key: {}".format(signing_key.verify_key.encode(nacl.encoding.HexEncoder).decode('ascii'))) + verify_key = signing_key.verify_key + print("INFO: verification key: {}".format(verify_key.encode(nacl.encoding.HexEncoder).decode('ascii'))) with open(fn, 'w') as f: os.chmod(f.fileno(), S_IRUSR) f.write(signing_key.encode(encoder=nacl.encoding.HexEncoder).decode('ascii')) -- cgit v1.2.3