Documentation ¶
Index ¶
- Constants
- Variables
- func DeriveKey(mnemonic, bip39Passphrase, hdPath string, algo keys.SigningAlgo) ([]byte, error)
- func DeriveSecp256k1(mnemonic, bip39Passphrase, path string) ([]byte, error)
- func EthSecp256k1Options() []keys.KeybaseOption
- func EthermintKeygenFunc(bz []byte, algo keys.SigningAlgo) (tmcrypto.PrivKey, error)
Constants ¶
View Source
const ( // EthSecp256k1 defines the ECDSA secp256k1 used on Ethereum EthSecp256k1 = keys.SigningAlgo(ethsecp256k1.KeyType) )
Variables ¶
View Source
var SupportedAlgorithms = []keys.SigningAlgo{EthSecp256k1, keys.Secp256k1}
SupportedAlgorithms defines the list of signing algorithms used on Ethermint:
- eth_secp256k1 (Ethereum)
- secp256k1 (Tendermint)
Functions ¶
func DeriveKey ¶
func DeriveKey(mnemonic, bip39Passphrase, hdPath string, algo keys.SigningAlgo) ([]byte, error)
func DeriveSecp256k1 ¶
DeriveSecp256k1 derives and returns the eth_secp256k1 private key for the given mnemonic and HD path.
func EthSecp256k1Options ¶
func EthSecp256k1Options() []keys.KeybaseOption
EthSecp256k1Options defines a keys options for the ethereum Secp256k1 curve.
func EthermintKeygenFunc ¶
EthermintKeygenFunc is the key generation function to generate secp256k1 ToECDSA from ethereum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.