Trait Executor

Source
pub trait Executor {
    // Required method
    fn execute(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<SessionInfo>;
}
Available on crate feature client and non-target_os="zkvm" only.
Expand description

An Executor can execute a given ELF binary.

Required Methods§

Source

fn execute(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<SessionInfo>

Execute the specified ELF binary.

This only executes the program and does not generate a receipt.

Implementors§

Source§

impl Executor for ExternalProver

Source§

impl Executor for LocalProver

Available on crate feature prove only.