solana_zk_token_sdk::zk_token_elgamal::ops

Function add_with_lo_hi

source
pub fn add_with_lo_hi(
    left_ciphertext: &ElGamalCiphertext,
    right_ciphertext_lo: &ElGamalCiphertext,
    right_ciphertext_hi: &ElGamalCiphertext,
) -> Option<ElGamalCiphertext>
Expand description

Compute left_ciphertext + (right_ciphertext_lo + 2^16 * right_ciphertext_hi)