Skip to main contentCrate clone_spl_token_confidential_transfer_ciphertext_arithmetic
Source - add
- Add two ElGamal ciphertexts
- add_to
- Add a constant amount to a ciphertext
- add_with_lo_hi
- Compute
left_ciphertext + (right_ciphertext_lo + 2^16 * right_ciphertext_hi) - multiply
- Multiply an ElGamal ciphertext by a scalar
- subtract
- Subtract two ElGamal ciphertexts
- subtract_from
- Subtract a constant amount to a ciphertext
- subtract_with_lo_hi
- Compute
left_ciphertext - (right_ciphertext_lo + 2^16 * right_ciphertext_hi)