[−][src]Struct solana_libra_crypto::x25519::X25519PublicKey
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>
Trait Implementations
impl Clone for X25519PublicKey
[src]
fn clone(&self) -> 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]
fn from(private_key: &X25519PrivateKey) -> Self
[src]
impl PartialEq<X25519PublicKey> for X25519PublicKey
[src]
fn eq(&self, other: &X25519PublicKey) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.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.
fn deref(&self) -> &Self::Target
[src]
impl Serialize for X25519PublicKey
[src]
impl<'de> Deserialize<'de> for X25519PublicKey
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
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
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
[src]
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
impl Sync for X25519PublicKey
impl Send for X25519PublicKey
impl Unpin for X25519PublicKey
impl RefUnwindSafe for X25519PublicKey
impl UnwindSafe for X25519PublicKey
Blanket Implementations
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn test_only_hash(&Self) -> HashValue
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,