pub struct ECDHKeyPair {
pub public_key: Vec<u8>,
pub private_key: Vec<u8>,
}Expand description
ECDH key pair: public key (SEC1 encoded) + private key (scalar bytes).
Private key material is zeroed on drop. Not Clone to prevent
uncontrolled duplication of private key material.
Fields§
§public_key: Vec<u8>§private_key: Vec<u8>Trait Implementations§
Source§impl Drop for ECDHKeyPair
impl Drop for ECDHKeyPair
Auto Trait Implementations§
impl Freeze for ECDHKeyPair
impl RefUnwindSafe for ECDHKeyPair
impl Send for ECDHKeyPair
impl Sync for ECDHKeyPair
impl Unpin for ECDHKeyPair
impl UnsafeUnpin for ECDHKeyPair
impl UnwindSafe for ECDHKeyPair
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