Closed osuketh closed 5 years ago
Add the lifted-ElGamal. It will encrypt the 32 bits integer and might need the suited statistical algorithm for the decryption of the transfer value. Anyway, the lifted-ElGamal is not expensive rather than paillier.
The algorithm of Lifted-Elgamal
Encryption
Enc(m) = (mP + r(sP), rP)
where m: message, P: the point on the curve, s: secret key, sP: public key, r: random value
Decryption
(mP + rsP) - s(rP) = mP
m
should be 32-bits num.
Homomorphic property
Enc(m) + Enc(m')
= (mP + rsP, rP) + (m'P + r'sP, r'P)
= ((m+m')P + (r + r')sP, (r + r')P)
= Enc(m + m')
For simplicity, we should add the homomorphic encryption like ElGamal or lifted-ElGamal, paillier instead of pedersen commitment.