Skip to main content

Decoy

Trait Decoy 

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

Generate legitimate looking instances of data structures without user input.

Required Methods§

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

Create a decoy instance from provided RNG.

§Security

Implementers must ensure this function generates valid cryptographic values, as invalid values may make an honest actor using ECDH-OMR believe the entity relaying Hints is acting dishonestly. In other words: decoys must be valid values and be indistinguishable from real values to passive observers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl Decoy for PublicKey

§

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

§

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

§

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

Implementors§

§

impl Decoy for ecdh_omr::dalek_ristretto255::PublicKey

§

impl<K: KeyPair, L: ArraySize> Decoy for HintSeed<K, L>