address

package
v0.50.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 225

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBech32Codec

func NewBech32Codec(prefix string) address.Codec

Types

type Bech32Codec

type Bech32Codec struct {
	Bech32Prefix string
}

func (Bech32Codec) BytesToString

func (bc Bech32Codec) BytesToString(bz []byte) (string, error)

BytesToString decodes bytes to text

func (Bech32Codec) StringToBytes

func (bc Bech32Codec) StringToBytes(text string) ([]byte, error)

StringToBytes encodes text to bytes

Jump to

Keyboard shortcuts

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