ed1fc7ad99
Before: BenchmarkBase58Encode_5K-32 46 23934763 ns/op 0.21 MB/s BenchmarkBase58Encode_100K-32 1 9351948600 ns/op 0.01 MB/s After: BenchmarkBase58Encode_5K-32 501 2419129 ns/op 2.07 MB/s BenchmarkBase58Encode_100K-32 2 923507950 ns/op 0.11 MB/s |
||
---|---|---|
.. | ||
alphabet.go | ||
base58.go | ||
base58_test.go | ||
base58bench_test.go | ||
base58check.go | ||
base58check_test.go | ||
cov_report.sh | ||
doc.go | ||
example_test.go | ||
genalphabet.go | ||
README.md |
base58
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.
Installation and Updating
$ go get -u github.com/btcsuite/btcutil/base58
Examples
- 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.
License
Package base58 is licensed under the copyfree ISC License.