Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBech32Codec ¶
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
Click to show internal directories.
Click to hide internal directories.