func HexToVersion(input string) phase0.Version {
	data := HexToBytes(input)
	var res phase0.Version
	copy(res[:], data)
	return res
}
HexToVersion converts a hex string to a spec version.
This should only be used for pre-defined test strings; it will panic if the input is invalid.
package testutil
import (
	"encoding/hex"
	"strings"
	"github.com/attestantio/go-eth2-client/spec/phase0"
)
func HexToBytes(input string) []byte {
	res, err := hex.DecodeString(strings.TrimPrefix(input, "0x"))
	if err != nil {
		panic(err)
	}
	return res
}
func HexToPubKey(input string) phase0.BLSPubKey {
	data := HexToBytes(input)
	var res phase0.BLSPubKey
	copy(res[:], data)
	return res
}
func HexToSignature(input string) phase0.BLSSignature {
	data := HexToBytes(input)
	var res phase0.BLSSignature
	copy(res[:], data)
	return res
}
func HexToDomainType(input string) phase0.DomainType {
	data := HexToBytes(input)
	var res phase0.DomainType
	copy(res[:], data)
	return res
}
func HexToDomain(input string) phase0.Domain {
	data := HexToBytes(input)
	var res phase0.Domain
	copy(res[:], data)
	return res
}