pub struct HpkeKeyPair(pub HpkeSecretKey, pub HpkePublicKey);Available on crate feature
v2 only.Tuple Fields§
§0: HpkeSecretKey§1: HpkePublicKeyImplementations§
Source§impl HpkeKeyPair
impl HpkeKeyPair
pub fn from_secret_key(secret_key: &HpkeSecretKey) -> Self
Available on crate feature
_core only.pub fn gen_keypair() -> Self
Available on crate feature
_core only.pub fn secret_key(&self) -> &HpkeSecretKey
Available on crate feature
_core only.pub fn public_key(&self) -> &HpkePublicKey
Available on crate feature
_core only.Trait Implementations§
Source§impl Clone for HpkeKeyPair
Available on crate feature _core only.
impl Clone for HpkeKeyPair
Available on crate feature
_core only.Source§fn clone(&self) -> HpkeKeyPair
fn clone(&self) -> HpkeKeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HpkeKeyPair
Available on crate feature _core only.
impl Debug for HpkeKeyPair
Available on crate feature
_core only.Source§impl<'de> Deserialize<'de> for HpkeKeyPair
Available on crate feature _core only.
impl<'de> Deserialize<'de> for HpkeKeyPair
Available on crate feature
_core only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HpkeKeyPair> for (HpkeSecretKey, HpkePublicKey)
Available on crate feature _core only.
impl From<HpkeKeyPair> for (HpkeSecretKey, HpkePublicKey)
Available on crate feature
_core only.Source§fn from(value: HpkeKeyPair) -> Self
fn from(value: HpkeKeyPair) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HpkeKeyPair
Available on crate feature _core only.
impl PartialEq for HpkeKeyPair
Available on crate feature
_core only.Source§impl Serialize for HpkeKeyPair
Available on crate feature _core only.
impl Serialize for HpkeKeyPair
Available on crate feature
_core only.impl Eq for HpkeKeyPair
Available on crate feature
_core only.impl StructuralPartialEq for HpkeKeyPair
Available on crate feature
_core only.Auto Trait Implementations§
impl Freeze for HpkeKeyPair
impl RefUnwindSafe for HpkeKeyPair
impl Send for HpkeKeyPair
impl Sync for HpkeKeyPair
impl Unpin for HpkeKeyPair
impl UnwindSafe for HpkeKeyPair
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