legacybech32

package
v0.46.11-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 112

Documentation

Overview

Deprecated: The module provides legacy bech32 functions which will be removed in a future release.

Index

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

Jump to

Keyboard shortcuts

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