Skip to content

create homomorphic addition test #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 28, 2024
Merged

Conversation

jacksonwalters
Copy link
Contributor

create unit test to verify encrypted addition is homomorphic, i.e. dec(enc(2)+enc(3)) = 2+3.

appears to be failing currently. the coefficients are always 1,0 which seems to be forced decrypt.

@jacksonwalters jacksonwalters linked an issue Dec 25, 2024 that may be closed by this pull request
note the homomorphism is between two different polynomial rings, where the plaintext here has been implicitly set to t=2.
@jacksonwalters
Copy link
Contributor Author

this is fixed by just noting the homomorphisms are between polynomial rings, and that the plaintext modulus is implicitly $t=2$.

@jacksonwalters jacksonwalters merged commit 495baa7 into main Dec 28, 2024
1 check passed
@jacksonwalters jacksonwalters deleted the create_hom_add_unit_test branch December 28, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix failing homomorphic addition test
1 participant