bech32

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BECH32M_CONST = 0x2bc830a3

Variables

This section is empty.

Functions

func ConvertBits

func ConvertBits(data []byte, fromBits, toBits uint8, pad bool) ([]byte, error)

func DecodeWithBech32m

func DecodeWithBech32m(bech string) (string, []byte, error)

func Encode

func Encode(hrp string, data []byte) (string, error)

func EncodeWithBech32m

func EncodeWithBech32m(hrp string, data []byte) (string, error)

Types

type Encoding

type Encoding uint
const (
	BECH32 Encoding = iota
	BECH32M
)

func Decode

func Decode(bech string) (Encoding, string, []byte, error)

Jump to

Keyboard shortcuts

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