Skip to content

Commit

Permalink
start ProofWithPublicInputsVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor O'Hara authored and Connor O'Hara committed Feb 20, 2024
1 parent 8f3a9c3 commit cb29322
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions plonky2x/core/src/frontend/recursion/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod extension;
pub mod fri;
pub mod hash;
pub mod plonky2_proof;
pub mod polynomial;
26 changes: 26 additions & 0 deletions plonky2x/core/src/frontend/recursion/plonky2_proof.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
use crate::frontend::recursion::extension::ExtensionVariable;
use crate::frontend::recursion::fri::proof::FriProofVariable;
use crate::frontend::recursion::hash::MerkleCapVariable;
use crate::prelude::Variable;
pub struct ProofWithPublicInputsVariable<const D: usize> {
proof: ProofVariable<D>, // Add missing generic argument
public_inputs: Vec<Variable>,
}

pub struct ProofVariable<const D: usize> {
wires_cap: MerkleCapVariable,
plonk_zs_partial_products_cap: MerkleCapVariable,
quotient_polys_cap: MerkleCapVariable,
openings: OpeningSetVariable<D>,
opening_proof: FriProofVariable<D>,
}

pub struct OpeningSetVariable<const D: usize> {
pub constants: Vec<ExtensionVariable<D>>,
pub plonk_sigmas: Vec<ExtensionVariable<D>>,
pub wires: Vec<ExtensionVariable<D>>,
pub plonk_zs: Vec<ExtensionVariable<D>>,
pub plonk_zs_next: Vec<ExtensionVariable<D>>,
pub partial_products: Vec<ExtensionVariable<D>>,
pub quotient_polys: Vec<ExtensionVariable<D>>,
}

0 comments on commit cb29322

Please sign in to comment.