base58

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 CheckDecode

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

Decode and verify checksum.

func CheckDecodeEosio

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

Decode and verify ripemd160 checksum.

func CheckEncode

func CheckEncode(input []byte) string

Encode and append a four byte checksum.

func CheckEncodeEosio

func CheckEncodeEosio(input []byte, suffix string) string

Encode and append a four byte ripemd160 checksum.

func Decode

func Decode(b string) []byte

Decode decodes a modified base58 string to a byte slice.

func Encode

func Encode(b []byte) string

Encode encodes a byte slice to a modified base58 string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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