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§
Sourcefn execute(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<SessionInfo>
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§
impl Executor for ExternalProver
impl Executor for LocalProver
Available on crate feature
prove
only.