This repository was archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
feat!: Update to acvm 0.12.0 #165
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
caba782
feat!: update to target acvm-84b5d18d
TomAFrench 3e17710
chore: update to use new black box solver interface
TomAFrench a610c5c
use patch syntax
phated 694c95a
update to latest changes
phated 947c413
feat!: update to acvm with non-homogeneous bb calls (#169)
sirasistant 7c6e21b
Merge branch 'master' into acvm-0.12.0
TomAFrench 7410438
fix bad rebase
phated 98d0148
Merge remote-tracking branch 'origin/master' into acvm-0.12.0
phated 030a7e7
feat!: Update backend to rely on WitnessMap (#152)
phated a97dc35
Merge remote-tracking branch 'origin/master' into acvm-0.12.0
phated 4f622b5
update acvm
phated 04c9d0f
feat!: Implement CommonReferenceString trait (#139)
phated ac930d4
chore: Switch to tokio test macro for async function (#191)
phated 2bb73bb
chore: Remove `sled` & `tempfile` dev-dependencies (#190)
phated 142a41b
Merge branch 'master' into acvm-0.12.0
TomAFrench b8a8e3c
chore: bump to crates.io release
TomAFrench 3ea5ed4
Update src/crs.rs
phated 9d0ca6f
chore: Remove streaming CRS download & indicator (#194)
phated 7bd2bd4
Update src/acvm_interop/common_reference_string.rs
phated 4358d3b
code review
phated File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.