Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion acvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ stdlib.workspace = true
blake2 = "0.10.6"
sha2 = "0.10.6"
sha3 = "0.10.6"
crc32fast = "1.3.2"
k256 = { version = "0.7.2", features = [
"ecdsa",
"ecdsa-core",
Expand Down
24 changes: 0 additions & 24 deletions acvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,30 +257,6 @@ 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");

use sha2::{digest::FixedOutput, Digest, Sha256};
let mut hasher = Sha256::new();

hasher.update(bytes);
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");

use crc32fast::Hasher;
let mut hasher = Hasher::new();

hasher.update(&bytes);
hasher.finalize()
}

#[deprecated(
note = "For backwards compatibility, this method allows you to derive _sensible_ defaults for opcode support based on the np language. \n Backends should simply specify what they support."
)]
Expand Down