This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat!: update to target acvm-84b5d18d * chore: update to use new black box solver interface * use patch syntax * update to latest changes * feat!: update to acvm with non-homogeneous bb calls (#169) * feat: update acvm * feat!: updated acvm to latest master * chore: update cargo toml * Update src/barretenberg_structures.rs Co-authored-by: Tom French <[email protected]> --------- Co-authored-by: Tom French <[email protected]> * fix bad rebase * feat!: Update backend to rely on WitnessMap (#152) Co-authored-by: Tom French <[email protected]> * update acvm * feat!: Implement CommonReferenceString trait (#139) * chore!: Remove filesystem access and utilize async fetch with range requests Co-authored-by: Tom French <[email protected]> * chore: Switch to tokio test macro for async function (#191) * chore: Remove `sled` & `tempfile` dev-dependencies (#190) * chore: Remove sled & tempfile dev-dependencies * chore: space out functions --------- Co-authored-by: Tom French <[email protected]> * chore: bump to crates.io release * Update src/crs.rs * chore: Remove streaming CRS download & indicator (#194) * Update src/acvm_interop/common_reference_string.rs * code review --------- Co-authored-by: Blaine Bublitz <[email protected]> Co-authored-by: Álvaro Rodríguez <[email protected]>
- Loading branch information
1 parent
146a842
commit d613c79
Showing
15 changed files
with
917 additions
and
842 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
use acvm::{acir::circuit::Circuit, async_trait, CommonReferenceString}; | ||
|
||
use crate::{composer::Composer, BackendError, Barretenberg}; | ||
|
||
// TODO(#185): Ensure CRS download works in JS | ||
#[async_trait] | ||
impl CommonReferenceString for Barretenberg { | ||
type Error = BackendError; | ||
|
||
async fn generate_common_reference_string( | ||
&self, | ||
circuit: &Circuit, | ||
) -> Result<Vec<u8>, Self::Error> { | ||
let constraint_system = &circuit.try_into()?; | ||
let common_reference_string = self.get_crs(constraint_system).await?.try_into()?; | ||
// Separated to have nicer coercion on error types | ||
Ok(common_reference_string) | ||
} | ||
|
||
async fn update_common_reference_string( | ||
&self, | ||
common_reference_string: Vec<u8>, | ||
circuit: &Circuit, | ||
) -> Result<Vec<u8>, Self::Error> { | ||
let mut crs = common_reference_string.try_into()?; | ||
let constraint_system = &circuit.try_into()?; | ||
let common_reference_string = self | ||
.update_crs(&mut crs, constraint_system) | ||
.await? | ||
.try_into()?; | ||
// Separated to have nicer coercion on error types | ||
Ok(common_reference_string) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
use crate::Barretenberg; | ||
|
||
mod common_reference_string; | ||
mod proof_system; | ||
mod pwg; | ||
mod smart_contract; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.