Skip to content

Commit 11a809f

Browse files
committed
document VDSet & vds_root
1 parent e2c4a65 commit 11a809f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/backends/plonky2/basetypes.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ pub static DEFAULT_VD_SET: LazyLock<VDSet> = LazyLock::new(|| {
6060
VDSet::new(params.max_depth_mt_vds, &vds).unwrap()
6161
});
6262

63-
/// Struct that allows to get the specific merkle proofs for the given verifier_data
63+
/// VDSet is the set of the allowed verifier_data hashes. When proving a
64+
/// MainPod, the circuit will enforce that all the used verifier_datas for
65+
/// verifying the recursive proofs of previous PODs appears in the VDSet.
66+
/// The VDSet struct that allows to get the specific merkle proofs for the given
67+
/// verifier_data.
6468
#[derive(Clone, Debug)]
6569
pub struct VDSet {
6670
root: Hash,

src/backends/plonky2/mainpod/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,11 @@ impl PodProver for Prover {
545545
pub struct MainPod {
546546
params: Params,
547547
id: PodId,
548+
/// vds_root is the merkle-root of the `VDSet`, which contains the
549+
/// verifier_data hashes of the allowed set of VerifierOnlyCircuitData, for
550+
/// the succession of recursive MainPods, which when proving the POD, it is
551+
/// proven that all the recursive proofs that are being verified in-circuit
552+
/// use one of the verifier_data's contained in the VDSet.
548553
vds_root: Hash,
549554
public_statements: Vec<Statement>,
550555
proof: Proof,

0 commit comments

Comments
 (0)