Skip to content

Commit

Permalink
chore(franklin-crypto): expose range check
Browse files Browse the repository at this point in the history
  • Loading branch information
saitima committed Oct 29, 2024
1 parent 6573228 commit 5128c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/franklin-crypto/src/plonk/circuit/goldilocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<E: Engine> Hash for GoldilocksField<E> {
}
}

fn range_check_for_num_bits<E: Engine, CS: ConstraintSystem<E>>(cs: &mut CS, num: &Num<E>, num_bits: usize) -> Result<(), SynthesisError> {
pub fn range_check_for_num_bits<E: Engine, CS: ConstraintSystem<E>>(cs: &mut CS, num: &Num<E>, num_bits: usize) -> Result<(), SynthesisError> {
assert!(num_bits % 16 == 0);

if let Num::Constant(value) = num {
Expand Down
2 changes: 1 addition & 1 deletion crates/snark-wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ description = "ZKsync snark wrapper"

[dependencies]
rescue_poseidon.workspace = true

serde = { version = "1", features = ["derive"] }
derivative = "2"
rand = "0.4"

0 comments on commit 5128c6d

Please sign in to comment.