[][src]Struct ristretto255_dh::PublicKey

pub struct PublicKey(_);

The public key derived from an ephemeral or static secret key.

Trait Implementations

impl Clone for PublicKey[src]

impl Copy for PublicKey[src]

impl Debug for PublicKey[src]

impl<'de> Deserialize<'de> for PublicKey[src]

impl Eq for PublicKey[src]

impl<'a> From<&'a EphemeralSecret> for PublicKey[src]

impl<'a> From<&'a StaticSecret> for PublicKey[src]

impl From<PublicKey> for [u8; 32][src]

fn from(public_key: PublicKey) -> [u8; 32][src]

Copy the bytes of the internal RistrettoPoint as the canonical compressed wire format. Two RistrettoPoints (and thus two PublicKeys) are equal iff their encodings are equal.

impl PartialEq<PublicKey> for PublicKey[src]

impl Serialize for PublicKey[src]

impl StructuralEq for PublicKey[src]

impl StructuralPartialEq for PublicKey[src]

impl TryFrom<[u8; 32]> for PublicKey[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(bytes: [u8; 32]) -> Result<PublicKey, Self::Error>[src]

Attempts to decompress an internal RistrettoPoint from the input bytes, which should be the canonical compressed encoding of a RistrettoPoint.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.