Skip to content

Commit

Permalink
pub ProofSize
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Oct 22, 2023
1 parent c052e95 commit 613a617
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions halo2_proofs/src/dev/cost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl<G: PrimeGroup, ConcreteCircuit: Circuit<G::Scalar>> CircuitCost<G, Concrete

/// (commitments, evaluations)
#[derive(Debug)]
struct ProofContribution {
pub struct ProofContribution {
commitments: usize,
evaluations: usize,
}
Expand Down Expand Up @@ -368,14 +368,22 @@ impl<G: PrimeGroup> From<MarginalProofSize<G>> for usize {
/// The size of a Halo 2 proof, broken down into its contributing factors.
#[derive(Debug)]
pub struct ProofSize<G: PrimeGroup> {
instance: ProofContribution,
advice: ProofContribution,
fixed: ProofContribution,
lookups: ProofContribution,
equality: ProofContribution,
vanishing: ProofContribution,
multiopen: ProofContribution,
polycomm: ProofContribution,
///
pub instance: ProofContribution,
///
pub advice: ProofContribution,
///
pub fixed: ProofContribution,
///
pub lookups: ProofContribution,
///
pub equality: ProofContribution,
///
pub vanishing: ProofContribution,
///
pub multiopen: ProofContribution,
///
pub polycomm: ProofContribution,
_marker: PhantomData<G>,
}

Expand Down

0 comments on commit 613a617

Please sign in to comment.