38c25ef9cd
The bech32 format is used to encode base32 data in a string format specified in BIP 173. This is among other things used to encode native segwit addresses, also specified in the same BIP. This commit adds the package bech32, which contains the necessary utility methods to create bech32 encoded strings from arbitrary data.
15 lines
511 B
Go
15 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
|