Beutify the generaded userkeys.json
This commit is contained in:
parent
c5e08f3a76
commit
8800275ed5
@ -70,10 +70,9 @@ def read_keys():
|
|||||||
"user_name": "user_ecdsa_public key"
|
"user_name": "user_ecdsa_public key"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
empty_userkeys_json = json.dumps(empty_userkeys)
|
|
||||||
with open(KEYSFILE, "w", encoding='utf-8') as nfile:
|
with open(KEYSFILE, "w", encoding='utf-8') as nfile:
|
||||||
print('You seem be lacking the users key file, created example for you. Exiting')
|
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
|
raise FileNotFoundError
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"user_publickeys": {
|
"user_publickeys": {
|
||||||
"user1": "f1debc13fb21fe0eee54525aa4f8aae5733b201c755edaa55f8893c90aa375b261a62eaa3110651ac5d7705d402581256a37508b0a1ca28bd919ea44710d9c88"
|
"user_name": "user_ecdsa_public key"
|
||||||
}
|
}
|
||||||
}
|
}
|
5
btc_tracker/userkeys.json_bak
Normal file
5
btc_tracker/userkeys.json_bak
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"user_publickeys": {
|
||||||
|
"user1": "f1debc13fb21fe0eee54525aa4f8aae5733b201c755edaa55f8893c90aa375b261a62eaa3110651ac5d7705d402581256a37508b0a1ca28bd919ea44710d9c88"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user