Skip to content

Equality circuit in BGV/BFV results in wrong plaintext #463

Closed Answered by Pro7ech
kragall asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kragall there is indeed a bug, the method eval.Add doesn't set the scale of the output ciphertext correctly. I've opened an issue: #467

In the meantime you can correct it by manually setting the metadata:
*add.MetaData = *cmps[0].MetaData

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@yusufozturk
Comment options

@lehugueni
Comment options

Answer selected by kragall
Comment options

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