Trait ark_serialize::CanonicalSerializeHashExt[][src]

pub trait CanonicalSerializeHashExt: CanonicalSerialize {
    fn hash<H: Digest>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> { ... }
fn hash_uncompressed<H: Digest>(
        &self
    ) -> GenericArray<u8, <H as Digest>::OutputSize> { ... } }
Expand description

The CanonicalSerialize induces a natural way to hash the corresponding value, of which this is the convenience trait.

Provided methods

Implementors

CanonicalSerializeHashExt is a (blanket) extension trait of CanonicalSerialize