From 70cbfe3702189a878c08d2fcf3b6f45cec75c3fa Mon Sep 17 00:00:00 2001 From: poma Date: Mon, 13 Apr 2020 22:21:33 +0300 Subject: [PATCH] expose density tracker --- src/groth16/prover.rs | 10 +++++----- src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/groth16/prover.rs b/src/groth16/prover.rs index be92e40df..6a15db59f 100644 --- a/src/groth16/prover.rs +++ b/src/groth16/prover.rs @@ -128,15 +128,15 @@ pub(crate) fn scalars_into_representations( // This is a proving assignment with densities precalculated pub struct PreparedProver{ - assignment: ProvingAssignment, + pub assignment: ProvingAssignment, } #[derive(Clone)] -struct ProvingAssignment { +pub struct ProvingAssignment { // Density of queries - a_aux_density: DensityTracker, - b_input_density: DensityTracker, - b_aux_density: DensityTracker, + pub a_aux_density: DensityTracker, + pub b_input_density: DensityTracker, + pub b_aux_density: DensityTracker, // Evaluations of A, B, C polynomials a: Vec>, diff --git a/src/lib.rs b/src/lib.rs index 0f71f9a28..da3a78268 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ pub mod gm17; pub mod sonic; mod group; -mod source; +pub mod source; mod multiexp; #[cfg(test)]