From 39b8a41293e567971f700f61103852cb987a8d16 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:18:40 +0000 Subject: [PATCH] feat!: update `ProofSystemCompiler` to not take ownership of keys (#111) --- acvm/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acvm/src/lib.rs b/acvm/src/lib.rs index 977f88b22..52fe34b46 100644 --- a/acvm/src/lib.rs +++ b/acvm/src/lib.rs @@ -170,7 +170,7 @@ pub trait ProofSystemCompiler { &self, circuit: &Circuit, witness_values: BTreeMap, - proving_key: Vec, + proving_key: &[u8], ) -> Vec; /// Verifies a Proof, given the circuit description, the circuit's public inputs, and the verification key @@ -179,7 +179,7 @@ pub trait ProofSystemCompiler { proof: &[u8], public_inputs: Vec, circuit: &Circuit, - verification_key: Vec, + verification_key: &[u8], ) -> bool; }