Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MainnetChainID defines the lyfebloc EIP155 chain ID for mainnet MainnetChainID = "lyfebloc_9001" // TestnetChainID defines the lyfebloc EIP155 chain ID for testnet TestnetChainID = "lyfebloc_9000" )
View Source
const RootCodespace = "lyfebloc"
RootCodespace is the codespace for all errors defined in this package
Variables ¶
View Source
var (
ErrKeyTypeNotSupported = errorsmod.Register(RootCodespace, codeKeyTypeNotSupported, "key type 'secp256k1' not supported")
)
errors
Functions ¶
func GetlyfeblocAddressFromBech32 ¶
func GetlyfeblocAddressFromBech32(address string) (sdk.AccAddress, error)
GetlyfeblocAddressFromBech32 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: `lyfebloc`). The function fails if the provided bech32 address is invalid.
func IsMainnet ¶
IsMainnet returns true if the chain-id has the lyfebloc mainnet EIP155 chain prefix.
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.