Trait tc_transact::hash::Hash
source · pub trait Hash<D>: Sizedwhere
D: Digest,{
// Required method
fn hash(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>;
}
Expand description
Trait to compute a SHA-2 hash using the digest type D
Required Methods§
sourcefn hash(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
fn hash(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
Compute the SHA-2 hash of this value
Object Safety§
This trait is not object safe.