Open Richard87 opened 6 years ago
bech32 native segwit addresses are definitely a must.
https://github.com/sipa/bech32/blob/master/ref/go/src/bech32/bech32.go
@maxtaco Here's a bech32 implementation in Go that will decode and check bech32 segwit addresses.
SegwitAddrDecode("bc", "bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej")
// This will throw an error if the first string doesn't match the string portion all the way up to the last "1" character.
// bc is for bitcoin mainnet
also, bech32 is case insensitive... so I would recommend taking the user input and converting to lower case so you only have to check for "bc" and not "bC" "Bc" and "BC"
One more vote for Bech32 support.
my segwit address is still not accepted
Was wondering if there had been any progress on this? @dabura667 's post seemed promising, but it was posted more than a year ago.
They have an active pull request now.
Should be done in a few weeks.
merged 6 days ago.
should be any day now.
I can't publish a bitcoin segwit address..