Skip to main content

execute

Function execute 

Source
pub async fn execute(
    program: &Program,
    stack_inputs: StackInputs,
    advice_inputs: AdviceInputs,
    host: &mut impl Host,
    options: ExecutionOptions,
) -> Result<ExecutionTrace, ExecutionError>
Expand description

Returns an execution trace resulting from executing the provided program against the provided inputs.

This is an async function that works on all platforms including wasm32.

The host parameter is used to provide the external environment to the program being executed, such as access to the advice provider and libraries that the program depends on.

ยงErrors

Returns an error if program execution fails for any reason.