From 4e369953afdfe83c9e99910482fdebc2b3e55164 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 28 May 2024 13:40:39 +0200 Subject: [PATCH] fix did comand line --- did.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/did.py b/did.py index c4512a2..d553ae1 100644 --- a/did.py +++ b/did.py @@ -30,7 +30,7 @@ def key_read(path_keys): with open(path_keys, 'r') as f: private_jwk = f.read() - return jwk.JWK.from_json(private_jwk) + return private_jwk def get_signing_key(jwk_pr): @@ -70,7 +70,7 @@ def main(): if args.new == 'keys': keyspair = generate_keys() - print(json.dumps(keyspair)) + print(keyspair) return if not args.key_path and args.new == 'did': @@ -80,7 +80,7 @@ def main(): if args.new == 'did': key = key_read(args.key_path) did = generate_did(key) - print(json.dumps(did)) + print(did) return