Trait sp_multihash::Digest[][src]

pub trait Digest<const S: usize>: AsRef<[u8]> + AsMut<[u8]> + From<[u8; S]> + Into<[u8; S]> + Clone + Hash + Debug + Default + Eq + Send + Sync + 'static {
    const SIZE: usize;
    fn wrap(digest: &[u8]) -> Result<Self, Error> { ... }
}
Expand description

Size marker trait. Stack allocated digest trait.

Associated Constants

Size of the digest. Maximum for Some of the Blake family is 2^64-1 bytes

Provided methods

Wraps the digest bytes.

Implementors