Module risc0_zkp::core

source ·
Expand description

Core module used to implement a zk-STARK prover and verifier.

This includes support for:

  • ntt: Number-theoretic transform (NTT)
  • sha: SHA-256 hashing support
  • sha_rng: Cryptographic random number generator (CRNG) based on SHA-256
  • Other basic ZKP utilities

Modules

An implementation of a number-theoretic transform (NTT).
Polynomial utilities (currently only those used in polynomial evaluation).
Simple SHA-256 wrappers.
Simple wrappers for a CPU-based SHA-256 implementation.
A SHA-256 based CRNG used in Fiat-Shamir.

Traits

Generic trait for generating random values.

Functions

Compute ceil(log_2(value))
For x = (1 << po2), given x, find po2.