fix did comand line
This commit is contained in:
parent
1df2838d1e
commit
4e369953af
6
did.py
6
did.py
|
@ -30,7 +30,7 @@ def key_read(path_keys):
|
||||||
with open(path_keys, 'r') as f:
|
with open(path_keys, 'r') as f:
|
||||||
private_jwk = f.read()
|
private_jwk = f.read()
|
||||||
|
|
||||||
return jwk.JWK.from_json(private_jwk)
|
return private_jwk
|
||||||
|
|
||||||
|
|
||||||
def get_signing_key(jwk_pr):
|
def get_signing_key(jwk_pr):
|
||||||
|
@ -70,7 +70,7 @@ def main():
|
||||||
|
|
||||||
if args.new == 'keys':
|
if args.new == 'keys':
|
||||||
keyspair = generate_keys()
|
keyspair = generate_keys()
|
||||||
print(json.dumps(keyspair))
|
print(keyspair)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not args.key_path and args.new == 'did':
|
if not args.key_path and args.new == 'did':
|
||||||
|
@ -80,7 +80,7 @@ def main():
|
||||||
if args.new == 'did':
|
if args.new == 'did':
|
||||||
key = key_read(args.key_path)
|
key = key_read(args.key_path)
|
||||||
did = generate_did(key)
|
did = generate_did(key)
|
||||||
print(json.dumps(did))
|
print(did)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue