Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 != ...
3tbraden's user avatar
  • 239