Hash

Trait Hash 

Source
pub trait Hash<const DIGEST_LEN: usize> {
    type TypedDigest: Into<Digest<DIGEST_LEN>> + Eq + Hash + Copy + Debug;

    // Required method
    fn digest(&self) -> Self::TypedDigest;
}
Expand description

This trait is implemented by all messages that can be hashed.

Required Associated Types§

Source

type TypedDigest: Into<Digest<DIGEST_LEN>> + Eq + Hash + Copy + Debug

The type of the digest when this is hashed.

Required Methods§

Source

fn digest(&self) -> Self::TypedDigest

Implementors§