2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-09 13:10:44 +00:00
This commit is contained in:
quadrismegistus 2020-09-12 21:30:54 +01:00
parent 4831f84642
commit caf447d77d

View File

@ -127,10 +127,18 @@ def check_phonelines():
pubkey=builtin_keys[name]['pubkey'] pubkey=builtin_keys[name]['pubkey']
uri_id=b64encode(pubkey) uri_id=b64encode(pubkey)
print(name,pubkey,uri_id) print(name,pubkey,uri_id)
keycrypt.set(uri_id.decode(),name,f'/{name}/',override=True) keycrypt.set(
uri_id.decode(),
name,
prefix=f'/name/',override=True
)
for keyname,keyval in builtin_keys[name].items(): for keyname,keyval in builtin_keys[name].items():
uri=name if keyname=='pubkey' else uri_id uri=name if keyname=='pubkey' else uri_id
keycrypt.set(uri,keyval,f'/{keyname}/',override=True) keycrypt.set(
uri,
keyval,
prefix=f'/{keyname}/',override=True
)
# make sure world's qr is there too # make sure world's qr is there too
ofnfn = os.path.join(PATH_QRCODES,WORLD_NAME+'.png') ofnfn = os.path.join(PATH_QRCODES,WORLD_NAME+'.png')