For improved security, the keyring should store only a single HDPath with its pub/private keys instead of the root secret (mnemonic). If one private key is compromised, the user will lose only one account instead of all accounts available for a single mnemonic.
Technical Details
We must move the accounts management from the DirectSecp256k1HdWallet class to DirectSecp256k1Wallet.
Storing the keys
The private and pub keys should be stored in this structure (OS, File, etc.):
Description
For improved security, the keyring should store only a single HDPath with its pub/private keys instead of the root secret (mnemonic). If one private key is compromised, the user will lose only one account instead of all accounts available for a single mnemonic.
Technical Details
We must move the accounts management from the
DirectSecp256k1HdWallet
class toDirectSecp256k1Wallet
. Storing the keys
The private and pub keys should be stored in this structure (OS, File, etc.):