bech32
bech32 copied to clipboard
update rust reference code for bech32m
Also add support for "bcrt" HRP
Hmm, is it desirable to restrict the code to bc/bcrt/tb? I don't think the other reference code does that.
If not I'm happy to remove it. It seemed like an odd thing to do, but the existing Rust code did it.
Yeah, I think I'd prefer removing that requirement.
Removed. This did mean that we had to remove a couple test vectors (which are "invalid segwit addresses" according to BIP-173 and 350 but nonetheless valid bech32).