address

package
v0.50.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 232

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