All Questions
Tagged with go-lang bech32-address
1 question
1
vote
1
answer
2k
views
how to generate bech32/segwit address from pubkey in golang
I am trying to generate bech32/segwit address in golang with the following code:
var pubkey *btcec.PubKey
address, err := btcutil.NewAddressPubKey(pubkey.SerializeCompressed(), chainParams)
if err != ...