-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR implements the complete functionality of accounts backup: - it allows exporting private keys for accounts imported with a private key or a JSON keystore file - it allows exporting mnemonics of HD wallets ### What has been done? - add export flow for private keys - add export flow for mnemonics Outside of scope of this PR - exporting private keys for specific accounts from HD wallets - #3253 ### Testing 1. Export private keys - plain text - [x] import account with a private key (plain text) - [x] after it is imported - go through the export flow - [x] compare exported private key with the private key you used for import 2. Export private keys - JSON file - [x] import account with JSON file - [x] after it is imported go through the export flow - [x] copy exported private key, note the address of this account and remove it - [x] import account with copied private key, compare addresses - it should be the same account 3. Export mnemonics - [x] import wallet with the mnemonic as usual - [x] go through the export flow - [x] compare mnemonics 4. Other - Ledger, read-only - [x] there should be no option to export any secrets for accounts imported with Ledger - [x] there should be no option to export any secrets for read-only accounts 5. Exploratory testing - [x] try removing and adding accounts again - there should be no problem exporting their accounts - [x] try to export short (12 words) and long (24 words) mnemonics - [x] try to export starting with both locked and unlocked wallet ## UI ![Screenshot 2023-04-05 at 08 34 05](https://user-images.githubusercontent.com/23117945/230000187-17f1645d-116b-45e9-8482-76de21d6be8d.png)![image](https://user-images.githubusercontent.com/20949277/231096292-18d32627-4af6-4dc5-a575-5a2020f6af4c.png) ![image](https://user-images.githubusercontent.com/20949277/231096872-046f8b86-1d53-4855-b2ca-32032674db75.png)![image](https://user-images.githubusercontent.com/20949277/231096598-38618c15-1492-425a-957d-e2d798994c05.png) Latest build: [extension-builds-3252](https://github.com/tahowallet/extension/suites/12523466508/artifacts/668490612) (as of Thu, 27 Apr 2023 12:04:59 GMT).
- Loading branch information
Showing
37 changed files
with
1,154 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.