Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
chore: deprecate hash_constraint_system (#214)
Browse files Browse the repository at this point in the history
chore: deprecate `checksum_constraint_system`
  • Loading branch information
TomAFrench authored Apr 20, 2023
1 parent f156e18 commit ff44337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit ff44337

Please sign in to comment.