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§
- The shape of a core proof.
- 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
. - An intermediate proof which proves the execution.
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 performed by the processor.
- A register stores a 32-bit value used by operations.
Constants§
- The file descriptor through which to access
hook_ecrecover
.
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.
- Deserialize a
Vec<(u32, V)>
as aHashMap<u32, V>
. - Calculate the most significant bit of the given 32-bit integer
a
, and returns it as a u8. - Calculate the correct
quotient
andremainder
for the givenb
andc
per RISC-V spec. - 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
. - Returns
true
if the givenopcode
is a signed operation. - Serialize a
HashMap<u32, V>
as aVec<(u32, V)>
.
Type Aliases§
- A runtime hook, wrapped in a smart pointer.