self.login_status.text='Komrade exists as a contact of yours.'
else:
awaitself.app.stat('Account does not exist on hardware, maybe not on server. Try to register?')
# await self.app.stat('Account does not exist on hardware, maybe not on server. Try to register?')
# self.login_status.text='Komrade not known on this device. Registering...'
### REGISTER
@ -218,9 +225,10 @@ class LoginScreen(BaseScreen):
ifkommie.exists_locally_as_contact():
return{'success':False,'status':'This is already a contact of yours'}
#
awaitlogfunc(f'Hello, this is Komrade @{name}. I would like to join the socialist network.',pause=True,komrade_name=name)
awaitlogfunc(f'Hello, this is Komrade @{name}.\n\nI would like to sign up for the socialist network revolution.',pause=True,komrade_name=name)
awaitlogfunc(f'Excellent. But to communicate with komrades securely, you must first cut your public & private encryption keys.',pause=True,clear=True)
awaitlogfunc(f'Welcome, Komrade @{name}. To help us communicate safely, I have cut for you a matching pair of encryption keys.',pause=True,clear=True,komrade_name='Keymaker')
# await logfunc(f'Here. I have cut for you a private and public asymmetric key pair, using the iron-clad Elliptic curve algorithm:',komrade_name='Keymaker')
awaitlogfunc(f'The first is your "public key", which you can share with anyone. With it, someone can write you an encrypted message.',komrade_name='Keymaker')
awaitlogfunc(f'You can share it by pasting it to someone in a secure message:\n\n{uri_s}',komrade_name='Keymaker')
awaitlogfunc(f'You can also share it IRL, phone to phone, as a QR code. This is what it will look like.',img_src=fnfn,komrade_name='Keymaker')
# await logfunc(f'(1) {pubkey} -- and -- (2) {privkey}',clear=True,pause=True,komrade_name='Keymaker')
# await logfunc(f'(1) You may store your public key both on your device hardware, as well as share it with anyone you wish: {pubkey.data_b64_s}') #\n\nIt will also be stored as a QR code on your device:\n{qr_str}',pause=True,clear=True)
kommie._keychain['pubkey']=pubkey
@ -241,10 +263,9 @@ class LoginScreen(BaseScreen):
### PRIVATE KEY
awaitlogfunc(f"(2) Your PRIVATE key, on the other hand, must be stored only on your device hardware.",pause=True)
awaitlogfunc('''Your private key is so sensitive we'll even encrypt it before storing it.''',pause=True,use_prefix=False)
### PRIVATE KEY
awaitlogfunc(f"(2) Your PRIVATE encryption key, on the other hand, must be stored only on your device hardware. In fact it's so sensitive we'll even encrypt the encryption key itself.",pause=True,use_prefix=False)
awaitlogfunc(f'(1) You may store your public key both on your device hardware, as well as share it with anyone you wish:\n\n{pubkey.data_b64_s}')#\n\nIt will also be stored as a QR code on your device:\n{qr_str}',pause=True,clear=True)
awaitlogfunc('You must also register your username and public key with Komrade @Operator on the remote server',pause=False,clear=False)