arnaucube
arnaucube/circom-compatPublic Self-hosted repository
chore: expose Proof a/b/c
Georgios Konstantopoulos me@gakonst.com
Wed, 11 Aug 2021 01:50:35 +0300
commit

cf225249ae0b99877100d6693920db3891f0a1f6

parent

de9af5b9e66a989442ac756109193afb30a5dc95

2 files changed, 5 insertions(+), 3 deletions(-)

jump to
M src/circom/builder.rs → src/circom/builder.rs

@@ -9,12 +9,14 @@

use crate::{circom::R1CSFile, witness::WitnessCalculator}; use color_eyre::Result; +#[derive(Clone, Debug)] pub struct CircomBuilder<E: PairingEngine> { pub cfg: CircomConfig<E>, pub inputs: HashMap<String, Vec<BigInt>>, } // Add utils for creating this from files / directly from bytes +#[derive(Clone, Debug)] pub struct CircomConfig<E: PairingEngine> { pub r1cs: R1CS<E>, pub wtns: WitnessCalculator,
M src/ethereum.rs → src/ethereum.rs

@@ -86,9 +86,9 @@ }

#[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 {