From 4520593eed91c59c46a609343013086f253bc1b8 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Tue, 10 Dec 2024 13:42:14 +0000 Subject: [PATCH] . --- avm-transpiler/Cargo.lock | 16 ++++++++++++++++ .../schnorr_account_contract/src/main.nr | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/avm-transpiler/Cargo.lock b/avm-transpiler/Cargo.lock index 4da74e41190..6e6331abfd2 100644 --- a/avm-transpiler/Cargo.lock +++ b/avm-transpiler/Cargo.lock @@ -37,6 +37,7 @@ dependencies = [ "acir", "acvm_blackbox_solver", "brillig_vm", + "fxhash", "indexmap 1.9.3", "serde", "thiserror", @@ -393,6 +394,12 @@ version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "cc" version = "1.1.6" @@ -682,6 +689,15 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + [[package]] name = "generic-array" version = "0.14.7" diff --git a/noir-projects/noir-contracts/contracts/schnorr_account_contract/src/main.nr b/noir-projects/noir-contracts/contracts/schnorr_account_contract/src/main.nr index b040ba5f1fe..6c9d9d73d63 100644 --- a/noir-projects/noir-contracts/contracts/schnorr_account_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/schnorr_account_contract/src/main.nr @@ -112,7 +112,7 @@ contract SchnorrAccount { is_infinite: false, }; let valid_in_private = - std::schnorr::verify_signature(pub_key, signature, message_hash.to_be_bytes::<32>()); + schnorr::verify_signature(pub_key, signature, message_hash.to_be_bytes::<32>()); // Compute the nullifier and check if it is spent // This will BLINDLY TRUST the oracle, but the oracle is us, and