btcsuite / btcutil

Provides bitcoin-specific convenience functions and types
477 stars 410 forks source link

Add Bech32 address format package. #100

Closed halseth closed 7 years ago

halseth commented 7 years ago

This PR implements the Bech32 address format as specified in BIP 173: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

Test are modeled after the Python reference implementation (https://github.com/sipa/bech32/blob/master/ref/python/tests.py) to ensure compatibility.

halseth commented 7 years ago

Will need https://github.com/btcsuite/btcd/pull/959 to build.

halseth commented 7 years ago

Done 👍

davecgh commented 7 years ago

Thanks for the updates! This looks good now. Please go ahead and squash it, then I'll approve and merge it.

halseth commented 7 years ago

Thanks! Done :)