Skip to main content

Blind

Trait Blind 

Source
pub trait Blind<K: KeyPair> {
    // Required method
    fn blind(&self, csprng: &mut impl CryptoRng) -> BlindedPublicKey<K>;
}
Expand description

Blind a public key.

Required Methods§

Source

fn blind(&self, csprng: &mut impl CryptoRng) -> BlindedPublicKey<K>

Blind a public key with the supplied 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 Blind<DalekX25519> for PublicKey

Source§

fn blind(&self, csprng: &mut impl CryptoRng) -> BlindedPublicKey<DalekX25519>

Source§

impl<C: CurveArithmetic> Blind<EllipticCurve<C>> for PublicKey<C>

Available on crate feature rustcrypto-ec only.
Source§

fn blind( &self, csprng: &mut impl CryptoRng, ) -> BlindedPublicKey<EllipticCurve<C>>

Implementors§

Source§

impl Blind<DalekRistretto255> for ecdh_omr::dalek_ristretto255::PublicKey