This is a fork of the package github.com/btcsuite/btcutil/base58. It has been modified for more general use with FATd and other Factom related code. Namely the number of version bytes is variable to allow for use with both Factoid addresses, which use two version bytes, and Identity keys, which use three.
Package base58 provides an API for encoding and decoding to and from the modified base58 encoding. It also provides an API to do Base58Check encoding, as described here.
A comprehensive suite of tests is provided to ensure proper functionality.
$ go get -u github.com/Factom-Asset-Tokens/base58
- Decode Example Demonstrates how to decode modified base58 encoded data.
- Encode Example Demonstrates how to encode data using the modified base58 encoding scheme.
- CheckDecode Example Demonstrates how to decode Base58Check encoded data.
- CheckEncode Example Demonstrates how to encode data using the Base58Check encoding scheme.
Package base58 is licensed under the copyfree ISC License.