Crate sp1_core_executor

source
Expand description

An implementation of an exucutor for the SP1 RISC-V zkVM.

Modules§

Structs§

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§

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 a HashMap<u32, V>.
  • Calculate the most significant bit of the given 32-bit integer a, and returns it as a u8.
  • Calculate the correct quotient and remainder for the given b and c 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 given opcode is a signed operation.
  • Serialize a HashMap<u32, V> as a Vec<(u32, V)>.

Type Aliases§

  • A runtime hook, wrapped in a smart pointer.