informalsystems / hermes

IBC Relayer in Rust
https://hermes.informal.systems
Apache License 2.0
452 stars 332 forks source link

Hermes: infer derivation path from `address_type` #1796

Open adizere opened 2 years ago

adizere commented 2 years ago

Would it make sense to have hermes use the right derivation path (by default) based on the chain config address_type = { derivation = 'evmos', ...? For eg. m/44'/118'/0'/0/0 for cosmos and m/44'/60'/0'/0/0 for evmos?

_Originally posted by @hu55a1n1 in https://github.com/informalsystems/ibc-rs/pull/1794#discussion_r788628858_

For instance, Hermes could automatically infer that it should use derivation path m/44'/118'/0'/0/0 for cosmos and m/44'/60'/0'/0/0 for Ethermint keys.

adizere commented 2 years ago

Copying @Farhad-Shabani as potentially interesting.