From cf225249ae0b99877100d6693920db3891f0a1f6 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Wed, 11 Aug 2021 01:50:35 +0300 Subject: [PATCH] chore: expose Proof a/b/c --- src/circom/builder.rs | 2 ++ src/ethereum.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/circom/builder.rs b/src/circom/builder.rs index d339a34..364e877 100644 --- a/src/circom/builder.rs +++ b/src/circom/builder.rs @@ -9,12 +9,14 @@ use std::collections::HashMap; use crate::{circom::R1CSFile, witness::WitnessCalculator}; use color_eyre::Result; +#[derive(Clone, Debug)] pub struct CircomBuilder { pub cfg: CircomConfig, pub inputs: HashMap>, } // Add utils for creating this from files / directly from bytes +#[derive(Clone, Debug)] pub struct CircomConfig { pub r1cs: R1CS, pub wtns: WitnessCalculator, diff --git a/src/ethereum.rs b/src/ethereum.rs index 78d2c35..151cc6e 100644 --- a/src/ethereum.rs +++ b/src/ethereum.rs @@ -86,9 +86,9 @@ impl From<&G2Affine> for G2 { #[derive(Default, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct Proof { - a: G1, - b: G2, - c: G1, + pub a: G1, + pub b: G2, + pub c: G1, } impl Proof {