lbcutil/bech32
Olaoluwa Osuntokun 14f90e5946
bech32: add additional field to ErrInvalidChecksum (bech32m version)
In this commit, we add an additional field to the ErrInvalidChecksum,
the bech32m version of a checksum. When decoding, we don't now what
version they actually _intended_ to use, so we'll opt to include both
checksums to aide in debugging and error reporting.
2021-09-21 17:11:43 -07:00
..
bech32.go bech32: Add base256 conversion convenience funcs. 2020-12-01 09:42:36 -05:00
bech32_test.go bech32: Add base256 conversion convenience funcs. 2020-12-01 09:42:36 -05:00
doc.go bech32: Add bech32 encoding package. 2017-07-25 22:14:01 -05:00
error.go bech32: add additional field to ErrInvalidChecksum (bech32m version) 2021-09-21 17:11:43 -07:00
example_test.go bech32: Ensure HRP is lowercase when encoding. 2020-12-01 09:42:36 -05:00
README.md bech32: Add bech32 encoding package. 2017-07-25 22:14:01 -05:00
version.go bech32: add new set of constants/versions to be used for bech32m 2021-09-21 17:11:38 -07:00

bech32

Build Status ISC License GoDoc

Package bech32 provides a Go implementation of the bech32 format specified in BIP 173.

Test vectors from BIP 173 are added to ensure compatibility with the BIP.

Installation and Updating

$ go get -u github.com/btcsuite/btcutil/bech32

Examples

License

Package bech32 is licensed under the copyfree ISC License.