pub struct EphemeralKeypair { /* private fields */ }Expand description
A Keypair that can only be used once.
Implementations§
Source§impl EphemeralKeypair
impl EphemeralKeypair
pub fn new() -> Self
pub fn diffie_hellman(self, public_key: &PublicKey) -> SharedSecret
pub fn public(&self) -> &PublicKey
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EphemeralKeypair
impl RefUnwindSafe for EphemeralKeypair
impl Send for EphemeralKeypair
impl Sync for EphemeralKeypair
impl Unpin for EphemeralKeypair
impl UnwindSafe for EphemeralKeypair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more