legacy

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package legacy contains a global amino Cdc which is deprecated but still used in several places within the SDK. This package is intended to be removed at some point in the future when the global Cdc is removed. It also contains a util function RegisterAminoMsg that checks a msg name length before registering the concrete msg type with amino.

Index

Constants

This section is empty.

Variables

Cdc defines a global generic sealed Amino codec to be used throughout sdk. It has all Tendermint crypto and evidence types registered.

TODO: Deprecated - remove this global.

Functions

func PrivKeyFromBytes

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

PrivKeyFromBytes unmarshals private key bytes and returns a PrivKey

func PubKeyFromBytes

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

PubKeyFromBytes unmarshals public key bytes and returns a PubKey

func RegisterAminoMsg added in v0.46.0

func RegisterAminoMsg(cdc *codec.LegacyAmino, msg sdk.Msg, msgName string)

RegisterAminoMsg first checks that the msgName is <40 chars (else this would break ledger nano signing: https://github.com/cosmos/cosmos-sdk/issues/10870), then registers the concrete msg type with amino.

Types

This section is empty.

Jump to

Keyboard shortcuts

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