pub unsafe fn execute_artifact(
compiled_artifact_blob: &[u8],
executor_params: &ExecutorParams,
params: &[u8],
) -> Result<Vec<u8>, Error>
Expand description
Executes the given PVF in the form of a compiled artifact and returns the result of execution upon success.
§Safety
The caller must ensure that the compiled artifact passed here was:
- produced by
prepare
, - was not modified,
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.