qubits4all / scriptless-zkp

Cryptographic protocols R&D re: zero-knowledge proofs, adaptor signatures & "scriptless" scripts
Mozilla Public License 2.0
1 stars 0 forks source link

Paillier Encryption with Homomorphic Addition Support #20

Closed qubits4all closed 1 month ago

qubits4all commented 3 months ago

Paillier Encryption with Homomorphic Addition & "Scalar" Multiplication Support

Provide a Paillier public-key encryption module, supporting encryption & decryption of non-negative integers, in the range [0, n) (where n is the public key's modulus: n = p*q for p, q prime).

Homomorphic Addition: Homomorphic addition should be supported, involving two Paillier ciphertexts, the effect of which is a new Paillier ciphertext encrypting the sum of the provided ciphertexts' associated plaintexts.

Homomorphic "Scalar" Multiplication: Homomorphic "scalar" multiplication should be supported, involving a Paillier ciphertext and a plaintext "scalar" (non-negative integer), the effect of which is a new Paillier ciphertext encrypting the product of the provided ciphertext's associated plaintext and the given "scalar" multiplier.

Homomorphic Addition (of a "Scalar"): Additionally, homomorphic addition with a plaintext "scalar" (non-negative integer) should be provided, the effect of which is a new Paillier ciphertext encrypting the sum of the provided ciphertext's associated plaintext and the given "scalar".