Skip to content

Commit

Permalink
feat(merkle): add inline hint to build_hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfertel committed Apr 29, 2024
1 parent 8772146 commit 15f7960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/crypto/src/keccak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub struct KeccakBuilder;
impl BuildHasher for KeccakBuilder {
type Hasher = Keccak256;

#[inline]
fn build_hasher(&self) -> Self::Hasher {
Keccak256(Keccak::v256())
}
Expand Down

0 comments on commit 15f7960

Please sign in to comment.