2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-13 13:11:11 +01:00
parent 2e87d10eb8
commit ad87d8466f
2 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class Crypt(Logger):
if not override:
self.log(f'''Crypt.set(\n\t{k_b}\n\n\t{v_b}\n)''')
# store
#self.store.put(k_b_hash,v_b)
self.store.put(k_b_hash,v_b)
#return (True,k_b_hash,v_b)
return True

View File

@ -8,6 +8,7 @@ from komrade.backend import *
def create_phonelines():
# crypt
keycrypt = Crypt(fn=PATH_CRYPT_OP_KEYS)
print(keycrypt.fn)
# Operator
op_keypair = KomradeAsymmetricKey()
@ -16,7 +17,8 @@ def create_phonelines():
keycrypt.set(OPERATOR_NAME,op_pubkey.data,prefix='/pubkey/')
keycrypt.set(op_uri,OPERATOR_NAME,prefix='/name/')
keycrypt.set(op_uri,op_privkey.data,prefix='/privkey/')
## Telephone
phone_keypair = KomradeAsymmetricKey()