Skip to main content

Keccak256Hasher

Type Alias Keccak256Hasher 

Source
pub type Keccak256Hasher = Keccak256;
Expand description

Keccak256 hasher for JMT.

sha3::Keccak256 implements digest::Digest, and JMT provides a blanket impl<T: Digest> SimpleHasher for T. So this type alias is all we need – pass it as the generic H parameter to JellyfishMerkleTree<R, H>.

Aliased Type§

pub struct Keccak256Hasher { /* private fields */ }