Trait Blind

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

Blind a public key.

Required Methods§

Source

fn blind(&self, csprng: &mut impl CryptoRngCore) -> 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<X25519> for PublicKey

Source§

fn blind(&self, csprng: &mut impl CryptoRngCore) -> BlindedPublicKey<X25519>

Source§

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

Source§

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

Implementors§