Struct kzen_paillier::MinimalEncryptionKey
source · pub struct MinimalEncryptionKey {
pub n: BigInt,
}
Expand description
Public encryption key with no precomputed values.
Used e.g. for serialization of EncryptionKey
.
Fields§
§n: BigInt
Trait Implementations§
source§impl Clone for MinimalEncryptionKey
impl Clone for MinimalEncryptionKey
source§fn clone(&self) -> MinimalEncryptionKey
fn clone(&self) -> MinimalEncryptionKey
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 MinimalEncryptionKey
impl Debug for MinimalEncryptionKey
source§impl<'de> Deserialize<'de> for MinimalEncryptionKey
impl<'de> Deserialize<'de> for MinimalEncryptionKey
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 EncryptionKey> for MinimalEncryptionKey
impl<'e> From<&'e EncryptionKey> for MinimalEncryptionKey
source§fn from(ek: &'e EncryptionKey) -> Self
fn from(ek: &'e EncryptionKey) -> Self
Converts to this type from the input type.
source§impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
source§impl<'e> From<MinimalEncryptionKey> for EncryptionKey
impl<'e> From<MinimalEncryptionKey> for EncryptionKey
source§fn from(ek: MinimalEncryptionKey) -> Self
fn from(ek: MinimalEncryptionKey) -> Self
Converts to this type from the input type.
source§impl PartialEq<MinimalEncryptionKey> for MinimalEncryptionKey
impl PartialEq<MinimalEncryptionKey> for MinimalEncryptionKey
source§fn eq(&self, other: &MinimalEncryptionKey) -> bool
fn eq(&self, other: &MinimalEncryptionKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.