Crate sp1_core_executor
source ·Expand description
An implementation of an exucutor for the SP1 RISC-V zkVM.
Modules§
- Type definitions for the events emitted by the
crate::Executor
during execution. - Types and methods for subproof verification inside the
crate::Executor
. - Syscall definitions & implementations for the
crate::Executor
.
Structs§
- A record of the execution of a program.
- An execution report.
- Holds data describing the current state of a program’s execution.
- An executor for the SP1 RISC-V zkVM.
- Holds data to track changes made to the runtime since a fork point.
- Environment that a hook may read from.
- A registry of hooks to call, indexed by the file descriptors through which they are accessed.
- RISC-V 32IM Instruction.
- A memory access record.
- A program that can be executed by the SP1 zkVM.
- Context to run a program inside SP1.
- A builder for
SP1Context
.
Enums§
- Byte Opcode.
- Errors that the
Executor
can throw. - The different modes the executor can run in.
- An opcode (short for “operation code”) specifies the operation to be perfomed by the processor.
- A register stores a 32-bit value used by operations.
Constants§
- The file descriptor through which to access
hook_ecrecover
. - The number of different byte lookup channels.
Traits§
- A runtime hook. May be called during execution by writing to a specified file descriptor, accepting and returning arbitrary data.
Functions§
- Aligns an address to the nearest word below or equal to it.
- Recovers the public key from the signature and message hash using the k256 crate.
- Wrap a function in a smart pointer so it may be placed in a
HookRegistry
.
Type Aliases§
- A runtime hook, wrapped in a smart pointer.