address

package
v0.52.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 225

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBech32Codec

func NewBech32Codec(prefix string) address.Codec

func NewCachedBech32Codec

func NewCachedBech32Codec(prefix string, opts CachedCodecOptions) (address.Codec, error)

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

type CachedCodecOptions

type CachedCodecOptions struct {
	Mu  *sync.Mutex
	Lru *simplelru.LRU
}

Jump to

Keyboard shortcuts

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