Struct kzen_paillier::MinimalDecryptionKey
source · Expand description
Private decryption key with no precomputed values.
Used e.g. for serialization of DecryptionKey
.
Fields§
§p: BigInt
§q: BigInt
Trait Implementations§
source§impl Clone for MinimalDecryptionKey
impl Clone for MinimalDecryptionKey
source§fn clone(&self) -> MinimalDecryptionKey
fn clone(&self) -> MinimalDecryptionKey
Returns a copy 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 MinimalDecryptionKey
impl Debug for MinimalDecryptionKey
source§impl<'de> Deserialize<'de> for MinimalDecryptionKey
impl<'de> Deserialize<'de> for MinimalDecryptionKey
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<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
impl<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
source§fn from(dk: &'e DecryptionKey) -> Self
fn from(dk: &'e DecryptionKey) -> Self
Converts to this type from the input type.
source§impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
source§impl<'e> From<MinimalDecryptionKey> for DecryptionKey
impl<'e> From<MinimalDecryptionKey> for DecryptionKey
source§fn from(dk: MinimalDecryptionKey) -> Self
fn from(dk: MinimalDecryptionKey) -> Self
Converts to this type from the input type.
source§impl PartialEq<MinimalDecryptionKey> for MinimalDecryptionKey
impl PartialEq<MinimalDecryptionKey> for MinimalDecryptionKey
source§fn eq(&self, other: &MinimalDecryptionKey) -> bool
fn eq(&self, other: &MinimalDecryptionKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.