# await logfunc(f'Here. I have cut for you a private and public asymmetric key pair, using the iron-clad Elliptic curve algorithm:',comrad_name='Keymaker')
@ -289,11 +290,11 @@ class LoginScreen(BaseScreen):
kommie._keychain['pubkey']=pubkey
kommie._keychain['privkey']=privkey
commie._keychain['pubkey']=pubkey
commie._keychain['privkey']=privkey
fromcomrad.utilsimportdict_format
self.log('My keychain now looks like:'+dict_format(kommie.keychain()))
self.log('My keychain now looks like:'+dict_format(commie.keychain()))
self.log('My keychain now looks like v2:',dict_format(kommie.keychain()))
commie._keychain['privkey_encr']=privkey_encr_obj
self.log('My keychain now looks like v2:',dict_format(commie.keychain()))
# await logfunc(f'With this scrambled password we can encrypt your super-sensitive private key, from this:\n{privkey.discreet}to this:\n{privkey_encr_obj.discreet}',pause=True,clear=False)
@ -339,7 +340,7 @@ class LoginScreen(BaseScreen):
'pubkey':pubkey.data,
},
route='register_new_user',
kommie=kommie
commie=commie
)
# self.app.close_dialog()
@ -365,7 +366,7 @@ class LoginScreen(BaseScreen):
kommie.name=resp_msg_d.get('name')
commie.name=resp_msg_d.get('name')
pubkey_b=resp_msg_d.get('pubkey')
assertpubkey_b==pubkey.data
uri_id=pubkey.data_b64
@ -376,18 +377,18 @@ class LoginScreen(BaseScreen):
# await logfunc(f'''Saving keys to device''',pause=True)
# await logfunc(f'Saving public key, encrypted private key, and login secret to hardware-only database. Also saving public key as QR code to: {_fnfn}.',pause=True,clear=False,use_prefix=False)
awaitlogfunc(f'You can share it by pasting it to someone in a secure message:\n{uri_s}',comrad_name='Keymaker')
@ -397,15 +398,15 @@ class LoginScreen(BaseScreen):
awaitlogfunc(f"(2) Your PRIVATE encryption key, on the other hand, will be stored encrypted on your device hardware. Do not it this with anyone or across any network whatsoever.")