Skip to content

Commit

Permalink
chore: Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky committed Jun 23, 2024
1 parent 160a543 commit b94e701
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ impl From<UtilsError> for solana_program::program_error::ProgramError {

pub fn is_smaller_than_bn254_field_size_be(bytes: &[u8; 32]) -> bool {
let bigint = BigUint::from_bytes_be(bytes);
if bigint < ark_bn254::Fr::MODULUS.into() {
true
} else {
false
}
bigint < ark_bn254::Fr::MODULUS.into()
}

pub fn hash_to_bn254_field_size_be(bytes: &[u8]) -> Option<([u8; 32], u8)> {
Expand Down

0 comments on commit b94e701

Please sign in to comment.