Files
next.orly.dev/pkg/crypto/ec/bech32
mleku 110223fc4e Migrate internal module imports to unified package path.
Replaced legacy `*.orly` module imports with `next.orly.dev/pkg` paths across the codebase for consistency. Removed legacy `go.mod` files from sub-packages, consolidating dependency management. Added Dockerfiles and configurations for benchmarking environments.
2025-09-12 16:12:31 +01:00
..

= bech32

image:http://img.shields.io/badge/license-ISC-blue.svg[ISC License,link=http://copyfree.org]
image:https://godoc.org/realy.lol/pkg/ec/bech32?status.png[GoDoc,link=http://godoc.org/realy.lol/pkg/ec/bech32]

Package bech32 provides a Go implementation of the bech32 format specified in
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki[BIP 173].

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

== Installation and Updating

[source,bash]
----
$ go get -u mleku.dev/pkg/ec/bech32
----

== Examples

* http://godoc.org/realy.lol/pkg/ec/bech32#example-Bech32Decode[Bech32 decode Example]
Demonstrates how to decode a bech32 encoded string.
* http://godoc.org/realy.lol/pkg/ec/bech32#example-BechEncode[Bech32 encode Example]
Demonstrates how to encode data into a bech32 string.

== License

Package bech32 is licensed under the http://copyfree.org[copyfree] ISC License.