func TstAddressWitnessScriptHash(version byte, program [32]byte,
	hrp string) *AddressWitnessScriptHash {
	return &AddressWitnessScriptHash{
		hrp:            hrp,
		witnessVersion: version,
		witnessProgram: program,
	}
}
TstAddressWitnessScriptHash creates an AddressWitnessScriptHash, initiating
the fields as given.
package soterutil
import (
	"github.com/soteria-dag/soterd/soterec"
	"github.com/soteria-dag/soterd/soterutil/base58"
	"github.com/soteria-dag/soterd/soterutil/bech32"
	"golang.org/x/crypto/ripemd160"
)
func (b *Block) SetBlockBytes(buf []byte) {
	b.serializedBlock = buf
}
func TstAppDataDir(goos, appName string, roaming bool) string {
	return appDataDir(goos, appName, roaming)
}
func TstAddressPubKeyHash(hash [ripemd160.Size]byte,
	netID byte) *AddressPubKeyHash {
	return &AddressPubKeyHash{
		hash:  hash,
		netID: netID,
	}
}
func TstAddressScriptHash(hash [ripemd160.Size]byte,
	netID byte) *AddressScriptHash {
	return &AddressScriptHash{
		hash:  hash,
		netID: netID,
	}
}
func TstAddressWitnessPubKeyHash(version byte, program [20]byte,
	hrp string) *AddressWitnessPubKeyHash {
	return &AddressWitnessPubKeyHash{
		hrp:            hrp,
		witnessVersion: version,
		witnessProgram: program,
	}
}