How can WIF be easily converted to WitnessPubKeyHash in Go?
We need to get the public key from WIF and than calculate witness program as
But is there a function in
btcutil to convert the public key to
witnessProg required by NewAddressWitnessPubKeyHash function:
func NewAddressWitnessPubKeyHash(witnessProg byte, net *chaincfg.Params) (*AddressWitnessPubKeyHash, error)