Crate sp1_core_executor

Source
Expand description

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

Modules§

Structs§

Enums§

Constants§

  • The default increment for the program counter. Is used for all instructions except for branches and jumps.
  • The file descriptor through which to access hook_bls12_381_inverse.
  • The file descriptor through which to access hook_bls12_381_sqrt.
  • The file descriptor through which to access hook_ecrecover.
  • The file descriptor through which to access hook_ed_decompress.
  • The file descriptor for hints.
  • The file descriptor for public values.
  • The file descriptor through which to access hook_rsa_mul_mod.
  • The minimum file descriptor.
  • The maximum number of instructions in a program.
  • This is used in the InstrEvent to indicate that the instruction is not from the CPU. A valid pc should be divisible by 4, so we use 1 to indicate that the pc is not used.

Traits§

  • A runtime hook. May be called during execution by writing to a specified file descriptor, accepting and returning arbitrary data.

Functions§

Type Aliases§

  • A runtime hook, wrapped in a smart pointer.