Beutify the generaded userkeys.json

This commit is contained in:
kalzu 2023-01-01 22:59:19 +02:00
parent c5e08f3a76
commit 8800275ed5
3 changed files with 8 additions and 4 deletions

View File

@ -70,10 +70,9 @@ def read_keys():
"user_name": "user_ecdsa_public key"
}
}
empty_userkeys_json = json.dumps(empty_userkeys)
with open(KEYSFILE, "w", encoding='utf-8') as nfile:
print('You seem be lacking the users key file, created example for you. Exiting')
json.dump(empty_userkeys_json, nfile)
json.dump(empty_userkeys, nfile, indent=2)
raise FileNotFoundError
return {}

View File

@ -1,5 +1,5 @@
{
"user_publickeys": {
"user1": "f1debc13fb21fe0eee54525aa4f8aae5733b201c755edaa55f8893c90aa375b261a62eaa3110651ac5d7705d402581256a37508b0a1ca28bd919ea44710d9c88"
"user_name": "user_ecdsa_public key"
}
}
}

View File

@ -0,0 +1,5 @@
{
"user_publickeys": {
"user1": "f1debc13fb21fe0eee54525aa4f8aae5733b201c755edaa55f8893c90aa375b261a62eaa3110651ac5d7705d402581256a37508b0a1ca28bd919ea44710d9c88"
}
}