Skip to content
Encode and decode Bech32 strings and Bitcoin Segwit addresses
C HTML Roff Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
LICENSE.txt
Makefile
Makefile.inc
Makefile.linux
README.md
bech32.1
bech32.1.html
bech32.1.md
bech32.1.txt
bech32.c
segwit_addr.c
segwit_addr.h

README.md

The bech32(1) Utility

Encode and decode Bech32 strings, ₿ Bitcoin “Bravo Charlie Addresses”, Bech32 .onion addresses...

Wait, did I say .onion addresses? Yes, I think that it’s a good idea to add Bech32’s error-correcting code.

This utility’s actual encoding and decoding is done by sipa’s Bech32 reference code, here included in tree.

For details, RTFM. Yes, it has a manpage. Software is unworthy of release if it does not have a proper manpage.

It has been tested on FreeBSD, my main platform, and on Linux. [Unfortunately, I may have slightly mussed the BSD building while preparing for publication; this should soon be fixed. The build system generally is still wonky. This is an early release, with most attention paid to the source code and manpage!]

License: AVL v0.0.1 with Bitcoin consensus clause. I would prefer to disclaim copyright, and and release things to the public domain (the public domain is not a license, “CC0” people). However, this is not an ideal world.

Please direct usage discussion to the forum thread, and bugs or concrete technical matters to the issue tracker.

Installation

FreeBSD:

make && make check

...then, make install as root (via sudo or otherwise). Other BSDs are probably similar.

Linux:

make -f Makefile.linux && \
	make -f Makefile.linux check && \
	sudo make -f Makefile.linux install
You can’t perform that action at this time.