cb58

package
v1.10.9-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: BSD-3-Clause Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBase58Decoding  = errors.New("base58 decoding error")
	ErrMissingChecksum = errors.New("input string is smaller than the checksum size")
	ErrBadChecksum     = errors.New("invalid input checksum")
)

Functions

func Decode

func Decode(str string) ([]byte, error)

Decode [str] to bytes from cb58.

func Encode

func Encode(bytes []byte) (string, error)

Encode bytes to a string using cb58 format. bytes may be nil, in which case it will be treated the same as an empty slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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