phoenix
phoenix copied to clipboard
Import Accounts using QR Code
Is your feature request related to a problem? Please describe. Right now, it's a bit tedious to import accounts, in especial "active" accounts. Entering the passphrase manually and is error prone.
Describe the solution you'd like In conjunction with the Phoenix wallet, we can introduce a QR Code carrying information about the account (incl. passphrase). This allows users to scan the code in the mobile wallet and all is set up easily.
Points of attention
The QRCode in the desktop wallet must be protected. Furthermore, we need to keep in mind that the passphrase is never stored on desktop wallet. Probably, it's a better way to import the keys rather than the passphrase itself, otherwise an user has to input the passphrase again.
There are also two types of import:
- Active - which needs either the passphrase or all keys
- Passive - just the accountID is sufficient
At a first glance it might be somehow like this:
- [Desktop] Open Account Info Screen
- [Desktop] Select Type of Account Import (active, passive) 3a. [Desktop] Passive: Generate QR with Account ID 3b. [Desktop] Active: Generate an OTP and put eigher the keys, or passphrase (where does it come from) into the code
- [Mobile] Pick up the mobile and scan the code on Import Screen
- [Mobile] According to the type (active, passive) the correct parsings are done!
Taskslist:
- [ ] Define a CIP22 compatible data model for 'import'
- [ ] Desktop: Generate secure QR Code (OTP + keys)
- [ ] Mobile: Add 'import' action type of CIP22 protocol
- [ ] Mobile: Add UI to support import