spl_token_confidential_transfer_ciphertext_arithmetic

Function subtract_with_lo_hi

Source
pub fn subtract_with_lo_hi(
    left_ciphertext: &PodElGamalCiphertext,
    right_ciphertext_lo: &PodElGamalCiphertext,
    right_ciphertext_hi: &PodElGamalCiphertext,
) -> Option<PodElGamalCiphertext>
Expand description

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