Documentation
¶
Overview ¶
Package base58 implements base58 encoding and decoding.
Index ¶
Constants ¶
View Source
const ( ChecksumLen int = 4 VersionLen int = 1 )
View Source
const (
Alphabet string = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
)
Variables ¶
View Source
var ( ErrChecksumMismatch = errs.New("checksum mismatch") ErrInvalidLength = errs.New("decoded input too short for Base58") )
Functions ¶
Types ¶
type Base58 ¶
type Base58 string
func CheckEncode ¶
func CheckEncode(input []byte, version VersionPrefix) Base58
type VersionPrefix ¶
type VersionPrefix byte
func CheckDecode ¶
func CheckDecode(input Base58) (result []byte, version VersionPrefix, err error)
Click to show internal directories.
Click to hide internal directories.