From 39d98468a047379a8cea841940bf5ddacd5eb243 Mon Sep 17 00:00:00 2001 From: Ayush Shukla Date: Wed, 2 Aug 2023 16:49:33 +0200 Subject: [PATCH] fix(test): use srs path relative to project root --- barustenberg/src/plonk/composer/standard_composer.rs | 2 +- barustenberg/src/plonk/proof_system/prover/test.rs | 2 +- barustenberg/src/plonk/proof_system/verifier/test.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/barustenberg/src/plonk/composer/standard_composer.rs b/barustenberg/src/plonk/composer/standard_composer.rs index a456305..f737145 100644 --- a/barustenberg/src/plonk/composer/standard_composer.rs +++ b/barustenberg/src/plonk/composer/standard_composer.rs @@ -114,7 +114,7 @@ impl StandardComposer { selector_properties: Vec, ) -> Self { let crs_factory = Rc::new(FileReferenceStringFactory::new( - "../srs_db/ignition".to_string(), + "./src/srs_db/ignition".to_string(), )); Self::with_crs_factory(crs_factory, num_selectors, size_hint, selector_properties) } diff --git a/barustenberg/src/plonk/proof_system/prover/test.rs b/barustenberg/src/plonk/proof_system/prover/test.rs index ca1f9a4..c666280 100644 --- a/barustenberg/src/plonk/proof_system/prover/test.rs +++ b/barustenberg/src/plonk/proof_system/prover/test.rs @@ -259,7 +259,7 @@ fn generate_test_data<'a, H: BarretenHasher + Default + 'static>( // create some constraints that satisfy our arithmetic circuit relation let reference_string = Rc::new(RefCell::new(FileReferenceString::new( n + 1, - "../srs_db/ignition", + "./src/srs_db/ignition", ).unwrap())); let key = Rc::new(RefCell::new(ProvingKey::new( n, diff --git a/barustenberg/src/plonk/proof_system/verifier/test.rs b/barustenberg/src/plonk/proof_system/verifier/test.rs index a98604e..9af2415 100644 --- a/barustenberg/src/plonk/proof_system/verifier/test.rs +++ b/barustenberg/src/plonk/proof_system/verifier/test.rs @@ -145,7 +145,7 @@ fn generate_test_data<'a, H: BarretenHasher + Default + 'static>( // create some constraints that satisfy our arithmetic circuit relation let crs = Rc::new(RefCell::new(FileReferenceString::new( n + 1, - "../srs_db/ignition", + "./src/srs_db/ignition", ).unwrap())); let key = Rc::new(RefCell::new(ProvingKey::new( n,