Struct x25519_dalek::PublicKey
source · pub struct PublicKey(_);
Expand description
A Diffie-Hellman public key, corresponding to an EphemeralSecret
or StaticSecret
key.
Implementations§
Trait Implementations§
source§impl<'a> From<&'a EphemeralSecret> for PublicKey
impl<'a> From<&'a EphemeralSecret> for PublicKey
source§fn from(secret: &'a EphemeralSecret) -> PublicKey
fn from(secret: &'a EphemeralSecret) -> PublicKey
Given an x25519 EphemeralSecret
key, compute its corresponding PublicKey
.
source§impl<'a> From<&'a StaticSecret> for PublicKey
impl<'a> From<&'a StaticSecret> for PublicKey
source§fn from(secret: &'a StaticSecret) -> PublicKey
fn from(secret: &'a StaticSecret) -> PublicKey
Given an x25519 StaticSecret
key, compute its corresponding PublicKey
.