Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvank committed Oct 12, 2023
1 parent f4f3e71 commit 75ac4ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/zk/groth16/gadgets/common/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ impl UnsignedInteger {
pub fn num_bits(&self) -> usize {
self.bits.len()
}
pub fn extract_bits(&self, count: usize) -> Self {
let mut num = Number::zero();
let bits = self.bits[..count].iter().cloned().collect::<Vec<_>>();
for b in bits.iter() {
num = num + Number::from(b.clone());
}
Self { num, bits }
}
pub fn alloc<CS: ConstraintSystem<BellmanFr>>(
cs: &mut CS,
val: ZkScalar,
Expand Down

0 comments on commit 75ac4ce

Please sign in to comment.