Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 8, 2023
1 parent 7c399de commit e9e249d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chia-bls/src/secret_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ fn to_lamport_pk(ikm: [u8; 32], idx: u32) -> [u8; 32] {
let mut hasher = Sha256::new();
hasher.update(lamport0);
hasher.update(lamport1);
hasher.finalize().try_into().unwrap()
hasher.finalize().into()
}

fn sha256(bytes: &[u8]) -> [u8; 32] {
let mut hasher = Sha256::new();
hasher.update(bytes);
hasher.finalize().try_into().unwrap()
hasher.finalize().into()
}

pub fn is_all_zero(buf: &[u8]) -> bool {
Expand Down

0 comments on commit e9e249d

Please sign in to comment.