Skip to content

Commit

Permalink
add serializers for TmShaHasher
Browse files Browse the repository at this point in the history
  • Loading branch information
S1nus committed May 14, 2024
1 parent ac03d7c commit 45d2b10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tendermint_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ fn inner_hash(left: &[u8], right: &[u8]) -> [u8; 32] {
}

/// A sha256 hasher, compatible with [Tendermint merkle hash](https://github.com/informalsystems/tendermint-rs/blob/979456c9f33463944f97f7ea3900640e59f7ea6d/tendermint/src/merkle.rs)
#[derive(Debug, Clone, Copy)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct TmSha2Hasher;

impl Default for TmSha2Hasher {
Expand Down

0 comments on commit 45d2b10

Please sign in to comment.