mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [DEV-97] Moved github.com/daglabs/btcutil into github.com/daglabs/btcd/btcutil. * [DEV-97] Updated Gopkg.toml to no longer refer to btcutil. * [DEV-97] Renamed btcutil to util.
30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
bech32dag
|
|
==========
|
|
|
|
[](https://travis-ci.org/btcsuite/btcutil)
|
|
[](http://copyfree.org)
|
|
[](http://godoc.org/github.com/daglabs/btcutil/bech32)
|
|
|
|
Package bech32 provides a Go implementation of the bech32 format specified in
|
|
[the spec](https://github.com/daglabs/spec/blob/master/dagcoin.pdf).
|
|
|
|
Test vectors from the spec are added to ensure compatibility with the BIP.
|
|
|
|
## Installation and Updating
|
|
|
|
```bash
|
|
$ go get -u github.com/daglabs/btcutil/bech32dag
|
|
```
|
|
|
|
## Examples
|
|
|
|
* [Bech32 decode Example](http://godoc.org/github.com/daglabs/btcutil/bech32dag#example-Bech32Decode)
|
|
Demonstrates how to decode a bech32 encoded string.
|
|
* [Bech32 encode Example](http://godoc.org/github.com/daglabs/btcutil/bech32dag#example-BechEncode)
|
|
Demonstrates how to encode data into a bech32 string.
|
|
|
|
## License
|
|
|
|
Package bech32 is licensed under the [copyfree](http://copyfree.org) ISC
|
|
License.
|