Skip to content

Add support Ethermint #1106

@vincentysc

Description

@vincentysc

Hi!

I added the Ethermint support to cosmjs locally with the following functions:

  • generate EVM / Bech32 address from public key type /ethermint.crypto.v1.ethsecp256k1.PubKey
  • sign the transaction with public key type /ethermint.crypto.v1.ethsecp256k1.PubKey

Is it ok to add a public key type flag to identify different decode/signing method in the following files? Any suggestions?

Generate address

In directsecp256k1hdwallet.js: getAccountsWithPrivkeys(), getKeyPair()
In account.js: accountFromAny()

Sign transaction

In pubkey.js: decodePubkey(), decodeSinglePubkey(), encodePubkey()
In signingstargateclient.js: signDirect()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions