finally! abolishing private key property

operator-time
quadrismegistus 4 years ago
parent ff5c4acffc
commit 3667648459

@ -24,7 +24,7 @@ class Caller(Operator):
if not OPERATOR: OPERATOR=TheOperator()
return OPERATOR
async def get_new_keys(self, name = None, passphrase = None, is_group=None):
def get_new_keys(self, name = None, passphrase = None, is_group=None):
if not name: name=self.name
if name is None:
name = input('\nWhat is the name for this account? ')
@ -45,7 +45,6 @@ class Caller(Operator):
'privkey_decr_encr', 'privkey_decr_decr',
'adminkey_decr_encr', 'adminkey_decr_decr']
try:
return await self.phone.req(json_coming_from_phone = req_json, caller=self)
except TypeError:
return None
return self.phone.req(json_coming_from_phone = req_json, caller=self)
# return await self.phone.req(json_coming_from_phone = req_json, caller=self)

@ -37,7 +37,13 @@ class TheTelephone(Operator):
r=tor_request(URL)
self.log('result!?!?!',r)
return r
if r.status_code==200:
return r.text
else:
self.log('!! error in request',r.status_code,r.text)
return None
@ -124,9 +130,9 @@ def test_call():
# res = phone.req({'forge_new_keys':{'name':'marx', 'pubkey_is_public':True}})
# print(res)
# asyncio.run(caller.get_new_keys())
caller.get_new_keys()
x=caller.get_new_keys()
print('YEAH COOL')
print('YEAH COOL',x)
## main
if __name__=='__main__': test_call()
Loading…
Cancel
Save