pub trait DigestDataHash<'a, const DIGEST_LEN: usize>: DigestData<'a, DIGEST_LEN> + DigestHash<'a, DIGEST_LEN> {
// Required method
fn set_client(&'a self, client: &'a dyn ClientDataHash<DIGEST_LEN>);
}
Expand description
Computes a digest (cryptographic hash) over data.
‘DIGEST_LEN’ is the length of the ‘u8’ array to store the digest output.
Required Methods§
Sourcefn set_client(&'a self, client: &'a dyn ClientDataHash<DIGEST_LEN>)
fn set_client(&'a self, client: &'a dyn ClientDataHash<DIGEST_LEN>)
Set the client instance which will receive hash_done()
and
add_data_done()
callbacks.