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