-
In the BGV scheme of Lattigo, how can I use coefficient encoding and perform homomorphic operations? I couldn't find the corresponding functions. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! You can use coefficient encoding by setting the |
Beta Was this translation helpful? Give feedback.
Hi!
You can use coefficient encoding by setting the
IsBatched
field of a plaintext tofalse
before encoding the values onto it. There are no specific methods for coefficient-encoding as operations act on the same objects at the end of the day (i.e. a BGV/BFV ciphertext), regardless of the encoding. The only difference is what you can expect once you decode. That is, if you work with coefficient encoding thenAdd
andMul
will perform an addition and multiplication in the plaintext ring (instead of a "SIMD" addition/multiplication slot-wise with slot-encoding).RotateRows
/RotateColumns
is meant to be used with slot-encoding as you can easily rotate the coefficients by multiplying by some mo…