This is a port of the github.com/btcsuite/btcutil/bech32 package. When compared to the original version, it introduces extra tests and benchmarks and improves upon the performance of the original code in significant ways, while maintaining the same public interface.
16 lines
511 B
Go
16 lines
511 B
Go
// Copyright (c) 2017 The btcsuite developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
/*
|
|
Package bech32 provides a Go implementation of the bech32 format specified in
|
|
BIP 173.
|
|
|
|
Bech32 strings consist of a human-readable part (hrp), followed by the
|
|
separator 1, then a checksummed data part encoded using the 32 characters
|
|
"qpzry9x8gf2tvdw0s3jn54khce6mua7l".
|
|
|
|
More info: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
|
|
*/
|
|
package bech32
|