Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
feat!: update to acvm 0.9.0 (#106)
Browse files Browse the repository at this point in the history
* feat!: update to acvm 0.9.0

* chore: remove unused import
  • Loading branch information
TomAFrench committed Apr 11, 2023
1 parent 34fb542 commit ff350fb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 19 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions barretenberg_static_lib/src/acvm_interop/pwg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use super::Plonk;

impl PartialWitnessGenerator for Plonk {
fn solve_black_box_function_call(
&self,
initial_witness: &mut BTreeMap<Witness, FieldElement>,
func_call: &BlackBoxFuncCall,
) -> Result<OpcodeResolution, OpcodeResolutionError> {
Expand Down
5 changes: 0 additions & 5 deletions barretenberg_static_lib/src/acvm_interop/smart_contract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use common::acvm::acir::circuit::Circuit;
use common::acvm::SmartContract;
use common::crs::G2;
use common::ULTRA_VERIFIER_CONTRACT;
Expand Down Expand Up @@ -26,10 +25,6 @@ impl SmartContract for Plonk {
let verification_key_library: String = sc_as_bytes.iter().map(|b| *b as char).collect();
format!("{ULTRA_VERIFIER_CONTRACT}{verification_key_library}")
}

fn eth_contract_from_cs(&self, _circuit: Circuit) -> String {
unimplemented!("use `eth_contract_from_vk`");
}
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions barretenberg_wasm/src/acvm_interop/pwg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use super::Plonk;

impl PartialWitnessGenerator for Plonk {
fn solve_black_box_function_call(
&self,
initial_witness: &mut BTreeMap<Witness, FieldElement>,
func_call: &BlackBoxFuncCall,
) -> Result<OpcodeResolution, OpcodeResolutionError> {
Expand Down
5 changes: 0 additions & 5 deletions barretenberg_wasm/src/acvm_interop/smart_contract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use common::acvm::acir::circuit::Circuit;
use common::acvm::SmartContract;
use common::crs::G2;
use common::ULTRA_VERIFIER_CONTRACT;
Expand Down Expand Up @@ -34,10 +33,6 @@ impl SmartContract for Plonk {
let verification_key_library: String = sc_as_bytes.iter().map(|b| *b as char).collect();
format!("{ULTRA_VERIFIER_CONTRACT}{verification_key_library}")
}

fn eth_contract_from_cs(&self, _circuit: Circuit) -> String {
unimplemented!("use `eth_contract_from_vk`");
}
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
acvm = { version = "0.8.0", features = ["bn254"] }
acvm = { version = "0.9.0", features = ["bn254"] }

sled = "0.34.6"
blake2 = "0.9.1"
Expand Down

0 comments on commit ff350fb

Please sign in to comment.