Struct fire_crypto::cipher::EphemeralKeypair
source · 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 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