Struct solana_zk_token_sdk::encryption::elgamal::ElGamalCiphertext
source · [−]pub struct ElGamalCiphertext {
pub message_comm: PedersenCommitment,
pub decrypt_handle: PedersenDecryptHandle,
}
Expand description
Ciphertext for the ElGamal encryption scheme.
Fields
message_comm: PedersenCommitment
decrypt_handle: PedersenDecryptHandle
Implementations
Utility method for code ergonomics.
Utility method for code ergonomics.
pub fn decrypt_u32_online(
&self,
secret: &ElGamalSecretKey,
hashmap: &DecodeU32Precomputation
) -> Option<u32>
pub fn decrypt_u32_online(
&self,
secret: &ElGamalSecretKey,
hashmap: &DecodeU32Precomputation
) -> Option<u32>
Utility method for code ergonomics.
Trait Implementations
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Returns the “default value” for a type. Read more
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
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the /
operator.
Performs the /
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the /
operator.
Performs the /
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the /
operator.
Performs the /
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the /
operator.
Performs the /
operation. Read more
Performs the conversion.
Performs the conversion.
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the *
operator.
Performs the *
operation. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ElGamalCiphertext
type Output = ElGamalCiphertext
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for ElGamalCiphertext
impl Send for ElGamalCiphertext
impl Sync for ElGamalCiphertext
impl Unpin for ElGamalCiphertext
impl UnwindSafe for ElGamalCiphertext
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