base32i

package
v0.0.0-...-f92b09a Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: ISC Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const Base32Alphabet = "0pzqy9x8bf2tvrwds3jn54khce6mua7l"

Base32Alphabet - Rootchain address encoding alphabet.

Variables

Encoding - Rootchain address encoder.

View Source
var ErrChecksum = errors.New("checksum error")

ErrChecksum indicates that the checksum of a check-encoded string does not verify against the checksum.

View Source
var ErrInvalidFormat = errors.New("invalid format: checksum bytes missing")

ErrInvalidFormat indicates that the check-encoded string has an invalid format.

Functions

func CheckDecodeString

func CheckDecodeString(input string) (result []byte, err error)

CheckDecodeString decodes a string that was encoded with CheckEncode and verifies the checksum.

func CheckEncode

func CheckEncode(input []byte) []byte

CheckEncode prepends and appends a four byte checksum.

func CheckEncodePrefixed

func CheckEncodePrefixed(input []byte) string

CheckEncodePrefixed is CheckEncode to string with multibase prefix 'i'.

func CheckEncodeToString

func CheckEncodeToString(input []byte) string

CheckEncodeToString is CheckEncode to string.

func Decode

func Decode(src []byte) (body []byte, err error)

Decode - Encodes rootchain address bytes.

func DecodeString

func DecodeString(src string) (body []byte, err error)

DecodeString - Encodes rootchain address bytes.

func Encode

func Encode(src []byte) []byte

Encode - Encodes rootchain address bytes.

func EncodeToString

func EncodeToString(src []byte) string

EncodeToString - Encodes rootchain address bytes to string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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