Documentation ¶
Overview ¶
Deprecated: The module provides legacy bech32 functions which will be removed in a future release.
Index ¶
- func MarshalPubKey(pkt Bech32PubKeyType, pubkey cryptotypes.PubKey) (string, error)deprecated
- func MustMarshalPubKey(pkt Bech32PubKeyType, pubkey cryptotypes.PubKey) stringdeprecated
- func UnmarshalPubKey(pkt Bech32PubKeyType, pubkeyStr string) (cryptotypes.PubKey, error)deprecated
- type Bech32PubKeyTypedeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPubKey
deprecated
func MarshalPubKey(pkt Bech32PubKeyType, pubkey cryptotypes.PubKey) (string, error)
Deprecated: MarshalPubKey returns a Bech32 encoded string containing the appropriate prefix based on the key type provided for a given PublicKey.
func MustMarshalPubKey
deprecated
func MustMarshalPubKey(pkt Bech32PubKeyType, pubkey cryptotypes.PubKey) string
Deprecated: MustMarshalPubKey calls MarshalPubKey and panics on error.
func UnmarshalPubKey
deprecated
func UnmarshalPubKey(pkt Bech32PubKeyType, pubkeyStr string) (cryptotypes.PubKey, error)
Deprecated: UnmarshalPubKey returns a PublicKey from a bech32-encoded PublicKey with a given key type.
Types ¶
type Bech32PubKeyType
deprecated
type Bech32PubKeyType string
Deprecated: Bech32PubKeyType defines a string type alias for a Bech32 public key type.
const ( AccPK Bech32PubKeyType = "accpub" ValPK Bech32PubKeyType = "valpub" ConsPK Bech32PubKeyType = "conspub" )
Bech32 conversion constants
Click to show internal directories.
Click to hide internal directories.