Open andywer opened 3 years ago
How it's done in similar apps: LOBSTR vault:
stellar-hd-wallet
packageLOBSTR wallet:
stellar-hd-wallet
packageStellarX:
stellar-hd-wallet
packageLOBSTR vault and wallet use the first key pair derived from the mnemonic phrase.
Thoughts from our (private) discussion:
Although the details of the export remain unclear for now, we should still add the import feature to increase convenience for our users.
Support importing and exporting mnemonic keyphrases instead of secret keys. Secret key import/export should still be possible, but mnemonic phrases should become the default.
Show a small text button "Use secret key" below the textfield or add a key icon button to the end of the textfield if there is not enough space. We should also show a short explanatory text telling the user what those twelve words in front of them are and what to do with them.
See SEP-5 / BIP-39 for technical details about mnemonic keyphrases.