Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MainnetChainID defines the Mezo EIP155 chain ID for mainnet MainnetChainID = "mezo_31612" // TestnetChainID defines the Mezo EIP155 chain ID for testnet TestnetChainID = "mezo_31611" // BaseDenom defines the Mezo mainnet denomination BaseDenom = "abtc" )
Variables ¶
This section is empty.
Functions ¶
func GetMezoAddressFromBech32 ¶
func GetMezoAddressFromBech32(address string) (sdk.AccAddress, error)
GetMezoAddressFromBech32 returns the sdk.Account address of given address, while also changing bech32 human readable prefix (HRP) to the value set on the global sdk.Config (eg: `mezo`). The function fails if the provided bech32 address is invalid.
func IsSupportedKey ¶
func IsSupportedKey(pubkey cryptotypes.PubKey) bool
IsSupportedKey returns true if the pubkey type is supported by the chain (i.e eth_secp256k1, amino multisig, ed25519). NOTE: Nested multisigs are not supported.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.