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-15 16:18:31 +01:00
parent 70797e5b8c
commit 602e6e3ef2

View File

@ -187,14 +187,16 @@ class TheOperator(Operator):
secret_login=data.get('secret_login') secret_login=data.get('secret_login')
name=name.encode() if type(name)==str else name name=name.encode() if type(name)==str else name
pubkey=pubkey.encode() if type(pubkey)==str else pubkey # pubkey=pubkey.encode() if type(pubkey)==str else pubkey
secret_login=secret_login.encode() if type(secret_login)==str else secret_login # secret_login=secret_login.encode() if type(secret_login)==str else secret_login
# get my records # get my records
uri = b64enc(pubkey) # uri = b64enc(pubkey)
uri = pubkey
name_record = self.crypt_keys.get( name_record = self.crypt_keys.get(
uri, uri,
prefix='/name/' prefix='/name/'
) )
print(uri,name,name_record,'??')
pubkey_record = b64enc(self.crypt_keys.get( pubkey_record = b64enc(self.crypt_keys.get(
name, name,
prefix='/pubkey/' prefix='/pubkey/'