-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Labels
Description
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()