Skip to content

Adding key generation algorithm for "eth_secp256k1" #1071

Closed
@leejw51crypto

Description

@leejw51crypto

currently, we can generate keys like this, default algo is secp256k1

hermes keys restore ethermint-2  -m "my mnemocnis.." -t 60

that's different from ethermint's one.

ethermintd keys add $KEY --keyring-backend test --algo "eth_secp256k1"

so we can add like this

hermes keys restore ethermint-2  -m "my mnemocnis.." -t 60 --algo "eth_secp256k1"

so user can freely designate 20 payload address representaion algorithm.

for example

secp256k1:   pubkey->sha256->last 20 bytes
eth_secp256k1: pubkey->sha256->ripemd160->20 bytes

also we can support other cosmos network which uses different address logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I: CLIInternal: related to the relayer's CLII: dependenciesInternal: related to dependenciesO: new-featureObjective: cause to add a new feature or support

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions