Skip to content

In the BGV scheme of Lattigo, how can I use coefficient encoding and perform homomorphic operations? #527

Answered by lehugueni
646589 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

You can use coefficient encoding by setting the IsBatched field of a plaintext to false 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 then Add and Mul 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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 646589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants