tendermint: github.com/tendermint/tendermint/crypto/encoding/amino Index | Files

package cryptoamino

import "github.com/tendermint/tendermint/crypto/encoding/amino"


Package Files


func PrivKeyFromBytes Uses

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

PrivKeyFromBytes unmarshals private key bytes and returns a PrivKey

func PubKeyFromBytes Uses

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

PubKeyFromBytes unmarshals public key bytes and returns a PubKey

func PubkeyAminoName Uses

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 Uses

func RegisterAmino(cdc *amino.Codec)

RegisterAmino registers all crypto related types in the given (amino) codec.

func RegisterKeyType Uses

func RegisterKeyType(o interface{}, name string)

RegisterKeyType registers an external key type to allow decoding it from bytes

Package cryptoamino imports 7 packages (graph) and is imported by 102 packages. Updated 2019-12-05. Refresh now. Tools for package owners.