risc0_zkvm/host/recursion/
mod.rs

1// Copyright 2025 RISC Zero, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Prover implementation for the recursion VM.
16//!
17//! This module contains the recursion programs used with the zkVM.
18//! As examples, the [lift], [join], and [resolve] programs are used
19//! oto compress a collection of STARK receipts for a composition into
20//! a single succinct receipt.
21//!
22#[cfg(feature = "prove")]
23pub(crate) mod prove;
24#[cfg(test)]
25#[cfg(feature = "prove")]
26mod tests;
27
28// NOTE: merkle modules is next to receipts because it needs to be compiled for the zkVM, as part
29// of SuccinctReceipt, but is logically part of the recursion system.
30#[cfg(feature = "prove")]
31pub use crate::receipt::merkle::{MerkleGroup, MerkleProof};
32pub use risc0_circuit_recursion::control_id::{ALLOWED_CONTROL_IDS, ALLOWED_CONTROL_ROOT};
33
34#[cfg(test)]
35#[cfg(feature = "prove")]
36pub use self::prove::test_zkr;
37#[cfg(feature = "prove")]
38pub use self::prove::{identity_p254, join, lift, resolve, Prover, RECURSION_PO2};
39#[cfg(feature = "prove")]
40pub use risc0_circuit_recursion::prove::Program;