`bin/ec`: map standard mnemonic to validator BLS keys
Closed this issue · 1 comments
ralexstokes commented
- BIP-39 mnemonic
- use BIP-39 library to generate seed
derive_master_SK
- using index and root,
derive_child_SK
- map
secret_key
topublic_key
=> mnemonic, series of indices (local validator indices): get BLS12-381 key pairs.
- bip-39 to make strong mnemonics
- given mnemonic, recover seed
- use bip-32 crate to generate keys from (range of) indices
update: the interface of bip32
crate was a bit more than we needed so instead, I just went w/ the bip39
crate in #263 and wrote the HD code by hand (there is not much that we would have saved by using some existing crate)