Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address. Bech32PrefixAccAddr = func(p string) string { return p } // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key. Bech32PrefixAccPub = func(p string) string { return p + sdk.PrefixPublic } // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address. Bech32PrefixValAddr = func(p string) string { return p + sdk.PrefixValidator + sdk.PrefixOperator } // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key. Bech32PrefixValPub = func(p string) string { return p + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic } // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address. Bech32PrefixConsAddr = func(p string) string { return p + sdk.PrefixValidator + sdk.PrefixConsensus } // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key. Bech32PrefixConsPub = func(p string) string { return p + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic } )
Functions ¶
func SetBech32Prefixes ¶
SetBech32Prefixes sets the global prefixes to be used when serializing addresses and public keys to Bech32 strings.
func SetBip44CoinType ¶
SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.
func SetupCosmosConfig ¶
func SetupCosmosConfig(bech32Prefix string)
SetupCosmosConfig sets up the Cosmos SDK configuration to be compatible with the semantics of etheruem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.