Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EthSecp256k1Type defines the ECDSA secp256k1 used on Ethereum EthSecp256k1Type = hd.PubKeyType(ethsecp256k1.KeyType) )
Variables ¶
View Source
var ( // SupportedAlgorithms defines the list of signing algorithms used on Cosmos EVM: // - eth_secp256k1 (Ethereum) // - secp256k1 (CometBFT) SupportedAlgorithms = keyring.SigningAlgoList{EthSecp256k1, hd.Secp256k1} // SupportedAlgorithmsLedger defines the list of signing algorithms used on Cosmos EVM for the Ledger device: // - eth_secp256k1 (Ethereum) // - secp256k1 (CometBFT) SupportedAlgorithmsLedger = keyring.SigningAlgoList{EthSecp256k1, hd.Secp256k1} )
View Source
var ( // Bip44CoinType satisfies EIP84. See https://github.com/ethereum/EIPs/issues/84 for more info. Bip44CoinType uint32 = 60 // BIP44HDPath is the default BIP44 HD path used on Ethereum. BIP44HDPath = ethaccounts.DefaultBaseDerivationPath.String() )
View Source
var (
// EthSecp256k1 uses the Bitcoin secp256k1 ECDSA parameters.
EthSecp256k1 = ethSecp256k1Algo{}
)
Functions ¶
func EthSecp256k1Option ¶
EthSecp256k1Option defines a function keys options for the ethereum Secp256k1 curve. It supports eth_secp256k1 and secp256k1 keys for accounts.
Types ¶
type PathIterator ¶ added in v0.5.0
type PathIterator func() ethaccounts.DerivationPath
func NewHDPathIterator ¶ added in v0.5.0
func NewHDPathIterator(basePath string, ledgerIter bool) (PathIterator, error)
NewHDPathIterator receives a base path as a string and a boolean for the desired iterator type and returns a function that iterates over the base HD path, returning the string.
Click to show internal directories.
Click to hide internal directories.