cryptoamino

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalPubKeyAminoTo

func MarshalPubKeyAminoTo(cdc *amino.Codec, key crypto.PubKey, buf *bytes.Buffer) error

func MarshalPubKeyToAmino

func MarshalPubKeyToAmino(cdc *amino.Codec, key crypto.PubKey) (data []byte, err error)

func PrivKeyFromBytes

func PrivKeyFromBytes(privKeyBytes []byte) (privKey crypto.PrivKey, err error)

PrivKeyFromBytes unmarshals private key bytes and returns a PrivKey

func PubKeyAminoSize

func PubKeyAminoSize(pubKey crypto.PubKey, cdc *amino.Codec) int

func PubKeyFromBytes

func PubKeyFromBytes(pubKeyBytes []byte) (pubKey crypto.PubKey, err error)

PubKeyFromBytes unmarshals public key bytes and returns a PubKey

func PubkeyAminoName

func PubkeyAminoName(cdc *amino.Codec, key crypto.PubKey) (string, bool)

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

func UnmarshalPubKeyFromAmino

func UnmarshalPubKeyFromAmino(cdc *amino.Codec, data []byte) (crypto.PubKey, error)

UnmarshalPubKeyFromAmino decode pubkey from amino bytes, bytes should start with type prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL