@JsonCreator
  public static VersionedHash fromHexString(final String str) {
    return new VersionedHash(Bytes32.fromHexString(str));
  }
Parse a hexadecimal string representing a versioned hash value.

@param str A hexadecimal string (with or without the leading '0x') representing a valid hash
    value.
@return The parsed hash.
@throws NullPointerException if the provided string is {@code null}.
@throws IllegalArgumentException if the string is either not hexadecimal, or not the valid
    representation of a versioned hash (not 32 bytes or bad version).
datatypes/src/main/java/org/hyperledger/besu/datatypes/VersionedHash.java