Skip to content

Commit

Permalink
removing is_zero
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Jan 14, 2025
1 parent ab22fa2 commit 955dea8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ pub fn remove_empty_byte_from_padded_bytes_unchecked(data: &[u8]) -> Vec<u8> {
output
}

pub fn is_zero(fr: Fr) -> bool {
fr.0 .0.iter().fold(0, |acc, &x| acc | x) == 0
}

pub fn set_bytes_canonical(data: &[u8]) -> Fr {
Fr::from_be_bytes_mod_order(data)
}
Expand Down

0 comments on commit 955dea8

Please sign in to comment.