Skip to content

Commit

Permalink
make "Keep as plain text" the CTA btn and change copy to explain the …
Browse files Browse the repository at this point in the history
…risks of encrypting the secret with device
  • Loading branch information
moneymanolis committed Dec 16, 2023
1 parent 34ec0a5 commit c87d12f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/keystore/memorycard.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,19 @@ async def save_mnemonic(self):

confirm = await self.show(Prompt("Overwrite data?",
"\n%s" % msg + "\n\nDo you want to continue?", 'Continue', warning="Irreversibly overwrite the data on the card"
))
))
if not confirm:
return
encrypt = await self.show(Prompt("Encrypt the secret?",
keep_as_plain_text = await self.show(Prompt("Encrypt the secret?",
"\nIf you encrypt the secret on the card "
"it will only work with this device.\n\n"
"Otherwise it will be readable on any device "
"it will only work with the device you are currently using.\n\n"
"If you keep it as plain text, it will be readable on any Specter DIY device "
"after you enter the PIN code.\n\n"
"Keep in mind that with encryption enabled "
"wiping the device makes the secret unusable!",
confirm_text="Yes, encrypt",
cancel_text="Keep as plain text"))
"Activating encryption means that if the device is wiped, the stored secret on the card becomes inaccessible.",
confirm_text="Keep as plain text",
cancel_text="Encrypt",
))
encrypt = not keep_as_plain_text
self.show_loader("Saving secret to the card...")
d = self.serialize_data(
{"entropy": bip39.mnemonic_to_bytes(self.mnemonic)},
Expand Down

0 comments on commit c87d12f

Please sign in to comment.