Skip to main content

Crate sp1_sdk

Crate sp1_sdk 

Source
Expand description

§SP1 SDK

A library for interacting with the SP1 RISC-V zkVM.

Visit the Getting Started section in the official SP1 documentation for a quick start guide.

Re-exports§

pub use cpu::CpuProver;
pub use mock::MockProver;
pub use light::LightProver;
pub use cuda::CudaProver;
pub use crate::client::ProverClient;
pub use prover::ProveRequest;
pub use prover::Prover;
pub use prover::ProvingKey;
pub use prover::SP1ProvingKey;
pub use prover::SP1VerificationError;
pub use proof::*;

Modules§

artifacts
SP1 Artifacts
client
SP1 Prover Client
cpu
SP1 CPU Prover
cuda
SP1 CUDA Prover
env
SP1 Environment Prover
install
SP1 Install
light
Light Prover
mock
Mock Prover
prelude
A prelude, including all the types and traits that are commonly used.
proof
SP1 Proof
prover
SP1 Prover Trait
utils
SP1 SDK Utilities

Macros§

include_elf
Returns the raw ELF bytes by the zkVM program target name.

Structs§

ExecutionReport
An execution report.
HookEnv
Environment that a hook may read from.
SP1Context
Context to run a program inside SP1.
SP1ContextBuilder
A builder for SP1Context.
SP1PublicValues
Public values for the prover.
SP1Stdin
Standard input for the prover.
SP1VerifyingKey
The information necessary to verify a proof for a given RISC-V program.
StatusCode
The status code of the execution.

Enums§

Elf
A type that represents an ELF binary, always cheap to clone.
ProverMode
The mode of the prover.

Constants§

SP1_CIRCUIT_VERSION
The global version for all components of SP1.

Traits§

HashableKey
A trait for keys that can be hashed into a digest.

Functions§

setup_logger
A simple logger.