Struct x25519_dalek::PublicKey [−][src]
pub struct PublicKey(_);
Expand description
A Diffie-Hellman public key, corresponding to an EphemeralSecret
or
StaticSecret
key.
We implement Zeroize
so that downstream consumers may derive it for Drop
should they wish to erase public keys from memory. Note that this erasure
(in this crate) does not automatically happen, but either must be derived
for Drop or explicitly called.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Given an x25519 EphemeralSecret
key, compute its corresponding PublicKey
.
Given an x25519 ReusableSecret
key, compute its corresponding PublicKey
.
Given an x25519 StaticSecret
key, compute its corresponding PublicKey
.
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more