Trait Decoy

Source
pub trait Decoy {
    // Required method
    fn random_decoy(csprng: &mut impl CryptoRngCore) -> Self;
}
Expand description

Generate legitimate looking instances of data structures without user input.

Required Methods§

Source

fn random_decoy(csprng: &mut impl CryptoRngCore) -> Self

Create a decoy instance from provided RNG.

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.

Implementations on Foreign Types§

Source§

impl Decoy for PublicKey

Source§

fn random_decoy(csprng: &mut impl CryptoRngCore) -> Self

Source§

impl<C: CurveArithmetic> Decoy for PublicKey<C>

Source§

fn random_decoy(csprng: &mut impl CryptoRngCore) -> Self

Implementors§

Source§

impl<K: KeyPair, const L: usize> Decoy for HintSeed<K, L>
where K::PublicKey: Decoy,