Trait Digest

Source
pub trait Digest: Array + Copy {
    // Required method
    fn random<R: RngCore + CryptoRng>(rng: &mut R) -> Self;
}
Expand description

Specializes the commonware_utils::Array trait with the Copy trait for cryptographic digests (which should be cheap to clone).

Required Methods§

Source

fn random<R: RngCore + CryptoRng>(rng: &mut R) -> Self

Generate a random Digest.

§Warning

This function is typically used for testing and is not recommended for production use.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§