Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccountAddressPrefix = "jinx" // Bech32MainPrefix defines the Bech32 prefix for an account's address Bech32MainPrefix = AccountAddressPrefix // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32MainPrefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
Variables ¶
This section is empty.
Functions ¶
func SetAddressPrefixes ¶
func SetAddressPrefixes()
SetAddressPrefixes sets the global prefixes to be used when serializing addresses and public keys to Bech32 strings.
func SetupConfig ¶
func SetupConfig()
SetupConfig sets up and seals the config. Note that importing and invoking this function also calls the `init` function in this package, which sets the address prefixes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.