2014-12-19 13:40:50 +01:00
|
|
|
base58
|
|
|
|
==========
|
|
|
|
|
2015-10-24 00:10:35 +02:00
|
|
|
[![Build Status](http://img.shields.io/travis/btcsuite/btcutil.svg)]
|
|
|
|
(https://travis-ci.org/btcsuite/btcutil) [![ISC License]
|
|
|
|
(http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
|
|
|
|
[![GoDoc](https://godoc.org/github.com/btcsuite/btcutil/base58?status.png)]
|
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/base58)
|
2014-12-19 13:40:50 +01:00
|
|
|
|
2014-12-22 19:36:34 +01:00
|
|
|
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,
|
2014-12-22 17:23:38 +01:00
|
|
|
as described [here](https://en.bitcoin.it/wiki/Base58Check_encoding).
|
2014-12-19 13:40:50 +01:00
|
|
|
|
2014-12-22 17:23:38 +01:00
|
|
|
A comprehensive suite of tests is provided to ensure proper functionality.
|
2014-12-19 13:40:50 +01:00
|
|
|
|
2015-10-24 00:10:35 +02:00
|
|
|
## Installation and Updating
|
2014-12-19 13:40:50 +01:00
|
|
|
|
|
|
|
```bash
|
2015-10-24 00:10:35 +02:00
|
|
|
$ go get -u github.com/btcsuite/btcutil/base58
|
2014-12-19 13:40:50 +01:00
|
|
|
```
|
|
|
|
|
2014-12-22 18:26:02 +01:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
* [Decode Example]
|
2015-01-16 04:35:16 +01:00
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/base58#example-Decode)
|
2014-12-22 18:26:02 +01:00
|
|
|
Demonstrates how to decode modified base58 encoded data.
|
|
|
|
* [Encode Example]
|
2015-01-16 04:35:16 +01:00
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/base58#example-Encode)
|
2014-12-22 18:26:02 +01:00
|
|
|
Demonstrates how to encode data using the modified base58 encoding scheme.
|
|
|
|
* [CheckDecode Example]
|
2015-01-16 04:35:16 +01:00
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/base58#example-CheckDecode)
|
2014-12-22 18:26:02 +01:00
|
|
|
Demonstrates how to decode Base58Check encoded data.
|
|
|
|
* [CheckEncode Example]
|
2015-01-16 04:35:16 +01:00
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/base58#example-CheckEncode)
|
2014-12-22 18:26:02 +01:00
|
|
|
Demonstrates how to encode data using the Base58Check encoding scheme.
|
|
|
|
|
2014-12-19 13:40:50 +01:00
|
|
|
## License
|
|
|
|
|
|
|
|
Package base58 is licensed under the [copyfree](http://copyfree.org) ISC
|
|
|
|
License.
|