```\\nfunction toDataWithIntendedValidatorHash(\\n    address validator,\\n    bytes memory data\\n) internal pure returns (bytes32) {\\n    return keccak256(abi.encodePacked("\\x19\\x00", validator, data));\\n}\\n```\\n