Documentation ¶
Index ¶
- func MarshalPubKeyToAminoWithTypePrefix(key crypto.PubKey) (data []byte, err error)
- func PrivKeyFromBytes(privKeyBytes []byte) (privKey crypto.PrivKey, err error)
- func PubKeyFromBytes(pubKeyBytes []byte) (pubKey crypto.PubKey, err error)
- func PubkeyAminoName(cdc *amino.Codec, key crypto.PubKey) (string, bool)
- func RegisterAmino(cdc *amino.Codec)
- func RegisterKeyType(o interface{}, name string)
- func UnmarshalPubKeyFromAminoWithTypePrefix(data []byte) (crypto.PubKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPubKeyToAminoWithTypePrefix ¶ added in v0.19.16
func PrivKeyFromBytes ¶
PrivKeyFromBytes unmarshals private key bytes and returns a PrivKey
func PubKeyFromBytes ¶
PubKeyFromBytes unmarshals public key bytes and returns a PubKey
func PubkeyAminoName ¶
PubkeyAminoName returns the amino route of a pubkey cdc is currently passed in, as eventually this will not be using a package level codec.
func RegisterAmino ¶
func RegisterAmino(cdc *amino.Codec)
RegisterAmino registers all crypto related types in the given (amino) codec.
func RegisterKeyType ¶
func RegisterKeyType(o interface{}, name string)
RegisterKeyType registers an external key type to allow decoding it from bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.