Closed baichuan3 closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
There is a major refactor of the keystore, which has many conflicts with several of your previous PRs. It has been merged manually. @feliciss can help review
I merge this pr first
One mnemonics is mapping to multi address, so, we can not use the address as the mnemonics's key.
But the addresses in MnemonicData, seem useless, we can remove it.
One mnemonics is mapping to multi address, so, we can not use the address as the mnemonics's key.
But the addresses in MnemonicData, seem useless, we can remove it.
Addresses in MnemonicData are used to restore accounts according to BIP44 and generate the address index. According to the metamask account logic, the wallet supports generating multiple accounts by mnemonic words and importing by private keys, so keys and addresses can be inconsistent. I think it is necessary to record the addresses generated by mnemonic words in MnemonicData.
resolve https://github.com/rooch-network/rooch/issues/932
Summary
rooch account import
command. We do not support multi mnemonic phrase keystore now.rooch account update
command. We do not support multi mnemonic phrase keystore now.PS.
The kestore format is incompatible. Need to delete the keystore file first
rm -rf ~/.rooch
Supports specifying mnemonic words during initialization and reusing mnemonic words to create the same account, similar to Metamask creation of accounts.
rooch init -m "{your mnemonic phrase}"