-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for the full hd_path instead of just the coin type #1049
Comments
Note: crypto.com's hd path definitions: https://github.com/crypto-org-chain/chain-main/search?q=cointype |
Thanks Greg! Could you please specify the equivalent gaia command? Also a concrete example input for |
The relevant gaiad command to create a key:
The
|
Note: if the account_index is set to
|
Crate
relayer-cli
relayer (possibly)
Background
https://learnmeabitcoin.com/technical/derivation-paths
Summary
The
hermes keys restore -t
option allows the user to tell hermes the coin type used in the wallet hardened derivation path. Although this is the most commonly overwritten section of the BIP44 HD path, in some cases other sections might be overwritten too. Hence we need hermes to support overwriting the full HD path.Problem Definition
The crypto.com mainnet's hdpath is m/44'/394'/0'/0/1 and during a testnet run I noticed that hermes doesn't recover the correct key. Forcing the testnet to use m/44'/394'/0'/0/0 made hermes work.
We would like to relay on the crypto.com mainnet, hence we need to be able to set the hd path in hermes when recovering keys.
Proposal
Implement
--hdpath
or similar forhermes keys restore
. I would be grateful to be able to pass the absolute HD path (starting with m), the same way gaiad accepts it.Acceptance Criteria
hermes imports the correct key on the crypto.com testnet/mainnet.
For Admin Use
The text was updated successfully, but these errors were encountered: