pub struct BlindedPublicKey<K: KeyPair> { /* private fields */ }Expand description
An ECDH public key that has been blinded, enabling a third party to send a message without knowing the cryptographic identity of the recipient.
Trait Implementations§
Source§impl Blinded for BlindedPublicKey<DalekRistretto255>
impl Blinded for BlindedPublicKey<DalekRistretto255>
Source§type BytesArray = Array<u8, <<DalekRistretto255 as KeyPair>::PublicKeySize as Add>::Output>
type BytesArray = Array<u8, <<DalekRistretto255 as KeyPair>::PublicKeySize as Add>::Output>
A bytes array type with the size of the serialized
BlindedPublicKey.Source§fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
Source§fn to_bytes(&self) -> Self::BytesArray
fn to_bytes(&self) -> Self::BytesArray
Serialize
BlindedPublicKey to a BytesArray.Source§impl Blinded for BlindedPublicKey<DalekX25519>
impl Blinded for BlindedPublicKey<DalekX25519>
Source§type BytesArray = Array<u8, <<DalekX25519 as KeyPair>::PublicKeySize as Add>::Output>
type BytesArray = Array<u8, <<DalekX25519 as KeyPair>::PublicKeySize as Add>::Output>
A bytes array type with the size of the serialized
BlindedPublicKey.Source§fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
Source§fn to_bytes(&self) -> Self::BytesArray
fn to_bytes(&self) -> Self::BytesArray
Serialize
BlindedPublicKey to a BytesArray.Source§impl<C: CurveArithmetic + PointCompression> Blinded for BlindedPublicKey<EllipticCurve<C>>where
<C as Curve>::FieldBytesSize: ModulusSize,
<C as CurveArithmetic>::AffinePoint: ToSec1Point<C> + FromSec1Point<C>,
CompressedPointSize<C>: Add<CompressedPointSize<C>> + ArraySize,
Sum<CompressedPointSize<C>, CompressedPointSize<C>>: ArraySize,
Available on crate feature rustcrypto-ec only.
impl<C: CurveArithmetic + PointCompression> Blinded for BlindedPublicKey<EllipticCurve<C>>where
<C as Curve>::FieldBytesSize: ModulusSize,
<C as CurveArithmetic>::AffinePoint: ToSec1Point<C> + FromSec1Point<C>,
CompressedPointSize<C>: Add<CompressedPointSize<C>> + ArraySize,
Sum<CompressedPointSize<C>, CompressedPointSize<C>>: ArraySize,
Available on crate feature
rustcrypto-ec only.Source§type BytesArray = Array<u8, <<EllipticCurve<C> as KeyPair>::PublicKeySize as Add>::Output>
type BytesArray = Array<u8, <<EllipticCurve<C> as KeyPair>::PublicKeySize as Add>::Output>
A bytes array type with the size of the serialized
BlindedPublicKey.Source§fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
Source§fn to_bytes(&self) -> Self::BytesArray
fn to_bytes(&self) -> Self::BytesArray
Serialize
BlindedPublicKey to a BytesArray.Source§impl<K: Clone + KeyPair> Clone for BlindedPublicKey<K>
impl<K: Clone + KeyPair> Clone for BlindedPublicKey<K>
Source§fn clone(&self) -> BlindedPublicKey<K>
fn clone(&self) -> BlindedPublicKey<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<K> Freeze for BlindedPublicKey<K>
impl<K> RefUnwindSafe for BlindedPublicKey<K>
impl<K> Send for BlindedPublicKey<K>
impl<K> Sync for BlindedPublicKey<K>
impl<K> Unpin for BlindedPublicKey<K>
impl<K> UnsafeUnpin for BlindedPublicKey<K>
impl<K> UnwindSafe for BlindedPublicKey<K>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more