Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose plonky2 recursion to the user #367

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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> {
pub proof: ProofVariable<D>,
pub public_inputs: Vec<Variable>,
}

pub struct ProofVariable<const D: usize> {
pub wires_cap: MerkleCapVariable,
pub plonk_zs_partial_products_cap: MerkleCapVariable,
pub quotient_polys_cap: MerkleCapVariable,
pub openings: OpeningSetVariable<D>,
pub 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>>,
}
Loading