lbcutil/bech32
Dave Collins 36377a3c8c bech32: Ensure HRP is lowercase when encoding.
BIP173 specifically calls out that encoders must always output an all
lowercase bech32 string and that the lowercase form is used when
determining a character's value for calculating the checksum.

Currently, the implementation does not respect either of those
requirements.

This modifies the Encode function to convert the provided HRP to
lowercase to ensure the requirements are satisfied and adds tests
accordingly.
2020-12-01 09:42:36 -05:00
..
bech32.go bech32: Ensure HRP is lowercase when encoding. 2020-12-01 09:42:36 -05:00
bech32_test.go bech32: Ensure HRP is lowercase when encoding. 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: back port improvements from decred/dcrd@9b88dd0 2020-12-01 09:42:36 -05: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

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.