func TstAddressSegwitSAddr(addr string) []byte {
	_, data, err := bech32.Decode(addr)
	if err != nil {
		return []byte{}
	}

	// First byte is version, rest is base 32 encoded data.
	data, err = bech32.ConvertBits(data[1:], 5, 8, false)
	if err != nil {
		return []byte{}
	}
	return data
}
// TstAddressSegwitSAddr returns the expected witness program bytes for
// bech32 encoded P2WPKH and P2WSH bitcoin addresses.
TstAddressSegwitSAddr returns the expected witness program bytes for
bech32 encoded P2WPKH and P2WSH bitcoin addresses.
// TstAddressSegwitSAddr returns the expected witness program bytes for // bech32 encoded P2WPKH and P2WSH bitcoin addresses .
func TstAddressSegwitSAddr(addr string) []byte {
	_, data, err := bech32.Decode(addr)
	if err != nil {
		return []byte{}
	}
	data, err = bech32.ConvertBits(data[1:], 5, 8, false)
	if err != nil {
		return []byte{}
	}
	return data
}
func TstAddressSegwitSAddr ( addr string ) [ ] byte { _ , data , err := bech32 . Decode ( addr ) if err != nil { return [ ] byte { } } data , err = bech32 . ConvertBits ( data [ 1 : ] , 5 , 8 , false ) if err != nil { return [ ] byte { } } return data }
TstAddressSegwitSAddr returns the expected witness program bytes for
bech32 encoded P2WPKH and P2WSH bitcoin addresses.
TstAddressSegwitSAddr returns the expected witness program bytes for bech32 encoded P2WPKH and P2WSH bitcoin addresses .
// First byte is version, rest is base 32 encoded data.