Trait risc0_zkvm::Executor

source ·
pub trait Executor {
    // Required method
    fn execute(
        &self,
        env: ExecutorEnv<'_>,
        image: MemoryImage
    ) -> Result<SessionInfo>;

    // Provided method
    fn execute_elf(
        &self,
        env: ExecutorEnv<'_>,
        elf: &[u8]
    ) -> Result<SessionInfo> { ... }
}
Expand description

An Executor can execute a given MemoryImage or ELF binary.

Required Methods§

source

fn execute( &self, env: ExecutorEnv<'_>, image: MemoryImage ) -> Result<SessionInfo>

Execute the specified MemoryImage.

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

Provided Methods§

source

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

Execute the specified ELF binary.

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

Implementors§