[][src]Struct solana_libra_crypto::x25519::X25519PublicKey

pub struct X25519PublicKey { /* fields omitted */ }

An x25519 public key.

Methods

impl X25519PublicKey[src]

pub const LENGTH: usize[src]

Length of the public key in bytes.

pub fn from_slice(data: &[u8]) -> Result<Self>[src]

Obtain a public key from a slice.

pub fn to_slice(&self) -> [u8; 32][src]

Convert a public key into a slice.

Methods from Deref<Target = PublicKey>

pub fn as_bytes(&self) -> &[u8; 32][src]

View this public key as a byte array.

Trait Implementations

impl Clone for X25519PublicKey[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'_> From<&'_ X25519PrivateKey> for X25519PublicKey[src]

impl PartialEq<X25519PublicKey> for X25519PublicKey[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for X25519PublicKey[src]

impl Eq for X25519PublicKey[src]

impl Display for X25519PublicKey[src]

impl Debug for X25519PublicKey[src]

impl Deref for X25519PublicKey[src]

type Target = PublicKey

The resulting type after dereferencing.

impl Serialize for X25519PublicKey[src]

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

impl Arbitrary for X25519PublicKey[src]

type Parameters = ()

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

type Strategy = BoxedStrategy<Self>

The type of [Strategy] used to generate values of type Self. Read more

fn arbitrary() -> Self::Strategy[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

Auto Trait Implementations

Blanket Implementations

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,