This exposes publicly the ability to decode arbitrary-length bech32 strings and return the bech32 version that was used in the encoding. It provides the underlying functionality for both DecodeNoLimit and DecodeGeneric.
Signed-off-by: MarkDaveny <peicuiping@aliyun.com>
In this commit, we move `btcutil` as well as its sub-module, the `psbt` package into the `btcd` repo itself.