Meshbits / pirate-chain-ios-wallet

iOS version of the Pirate Wallet
MIT License
3 stars 2 forks source link

Importing/Exporting private key of Pirate Chain address #19

Open satindergrewal opened 3 years ago

satindergrewal commented 3 years ago

At the time of creating this issue, the application only allows restoring the wallet using 24 word seed phrase only. While, there should also be demand and need for restoring a wallet address directly using the private key associated with a specific Pirate Chain address.

The sample app has example Get Address page which shows the private key of address. So, at least exporting the privkey which is also referred in shielded address's case as SpendingKey is possible. address_privkey

Exporting Private Key

The backup of private key should be only shown after PIN or Biomatric authentication, and two options should be provided to backup:

Importing Private Key

Unsure at the moment, how the wallet handles the generation and usage of Pirate Chain address from seed phrase. It needs to be explored and identified this process and then make any necessary changes to add the capability to also have the options of importing private key instead of just only the option of restoring with the 24 word seed phrase.