From ff44337f884ad59e6642425d0907af9e02d25a6d Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:57:24 +0100 Subject: [PATCH] chore: deprecate `hash_constraint_system` (#214) chore: deprecate `checksum_constraint_system` --- acvm/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acvm/src/lib.rs b/acvm/src/lib.rs index 5ebf4fc62..e02d91395 100644 --- a/acvm/src/lib.rs +++ b/acvm/src/lib.rs @@ -231,6 +231,7 @@ pub enum Language { PLONKCSat { width: usize }, } +#[deprecated] pub fn hash_constraint_system(cs: &Circuit) -> [u8; 32] { let mut bytes = Vec::new(); cs.write(&mut bytes).expect("could not serialize circuit"); @@ -242,6 +243,7 @@ pub fn hash_constraint_system(cs: &Circuit) -> [u8; 32] { hasher.finalize_fixed().into() } +#[deprecated] pub fn checksum_constraint_system(cs: &Circuit) -> u32 { let mut bytes = Vec::new(); cs.write(&mut bytes).expect("could not serialize circuit");