Open arrivets opened 5 years ago
If we allow ourselves to deviate from gaiacli's API, we could have:
To generate a new keyfile from a new seed-phrase:
monetd keys new [name]
To generate a new keyfile from an existing seed-phrase (which it prompts for interactively):
monetd keys new [name] --seed
To recover a key from a seed-phrase:
monetd keys recover [name]
At this stage, there would be no support for HD wallets. Only one key per seed-phrase.
Full BIP39 would be implemented in monetcli
later.
Implement a way to backup/restore keys using a seed phrase (BIP39).
BIP39 covers more than seed phrases, it also covers HD wallets (BIP32), which enables generating multiple keys using the same seed-phrase. The same seed-phrase can be used to recover all the keys that were generated with it.
We could do something similar to Cosmos
gaiacli
:So for example:
Produces two identical keys
key0
andkey0-recovered
provided that the seed-phrase given to the second command is the same as the seed-phrase produced by the first command.Then, create a second key using the same seed-phrase:
And recover it:
key1-recovered
equalskey1
.