Struct solana_zk_token_sdk::encryption::elgamal::ElGamalSecretKey
source · [−]pub struct ElGamalSecretKey(_);
Expand description
Secret key for the ElGamal encryption scheme.
Implementations
Utility method for code ergonomics.
Utility method for code ergonomics.
pub fn decrypt_u32_online(
&self,
ct: &ElGamalCiphertext,
hashmap: &DecodeU32Precomputation
) -> Option<u32>
pub fn decrypt_u32_online(
&self,
ct: &ElGamalCiphertext,
hashmap: &DecodeU32Precomputation
) -> Option<u32>
Utility method for code ergonomics.
Trait Implementations
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ElGamalSecretKey
impl Send for ElGamalSecretKey
impl Sync for ElGamalSecretKey
impl Unpin for ElGamalSecretKey
impl UnwindSafe for ElGamalSecretKey
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more