bech32

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidAddress = errors.New("Invalid address!")
	/*
	 This table corresponding to the first 128 chars in ascii table.If the char is not one of
	 "qpzry9x8gf2tvdw0s3jn54khce6mua7l" which is the code table of base32(Only consists
	 of alphanumeric characters excluding "1", "b", "i", and "o"), -1 will be set in
	 the corresponding position.Otherwise, the sequence number of alphanumeric character
	 will be set. For example, '0'is the 48th(from 0 starts) char in ascii table and the 15th
	 (from 0 starts)letter in code table, then 15 will be set in the 48th position.
	*/
	CHARSET_REV = []int8{}/* 128 elements not displayed */

)

Functions

func Decode

func Decode(address, alphabet string) ([]byte, error)

func Encode

func Encode(prefix, alphabet string, payload []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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