Skip to main content

Crate sp1_primitives

Crate sp1_primitives 

Source
Expand description

sp1-primitives contains types and functions that are used in both sp1-core and sp1-zkvm. Because it is imported in the zkvm entrypoint, it should be kept minimal.

Re-exports§

pub use types::Elf;

Modules§

consts
fri_params
io
polynomial
types
utils

Structs§

POSEIDON2_HASHER
RC_16_30
RC_16_30_U32

Constants§

SP1_CRATE_VERSION
The canonical version of the SP1 crate.

Functions§

hash_deferred_proof
Append a single deferred proof to a hash chain of deferred proofs.
poseidon2_hash
poseidon2_hasher
poseidon2_init

Type Aliases§

SP1DiffusionMatrix
SP1ExtensionField
SP1Field
SP1GlobalContext
The IopCtx used for the RISC-V stage and inner recursion (compress and shrink).
SP1OuterGlobalContext
The IopCtx used for outer recursion (wrap and SNARK stages).
SP1Perm