MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
12.01k stars 4.91k forks source link

Add API method & confirmation for importing a seed phrase #6867

Open danfinlay opened 5 years ago

danfinlay commented 5 years ago

SeedQuest is a project for creating a 3D mnemonic world. They can make seed phrases more memorable, and help users restore them.

A user can use their application already by pasting in their seed phrase to start memorizing it, and by playing through their game to restore it, but this involves requiring a user to copy and paste their seed phrase around, which is both fairly dangerous and bad UX.

While SeedQuest would most ideally want to be featured in our on-boarding flow, we could help them prove their concept in three phases:

This issue represents the goal of providing an API for a site to import a new seed phrase into MetaMask. This could take the form of a new RPC method like:

const success = await provider.send('wallet_importSeed', twelveWords)

This method would prompt the user with a new confirmation like:

If the user approved the confirmation the provider would return true to the requesting site, and MetaMask may present the user with some additional backup options, since we do not know that the user has backed up this seed phrase before.

If the user rejects the confirmation, the provider would return false.

After this issue is completed, we should specify any seed-exporting API we are willing to consider.

Gudahtt commented 3 years ago

Related to #7364