Skip to content

Decouple Context and Scheme and make HeScheme context flexible #212

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fboemer
Copy link
Contributor

@fboemer fboemer commented May 2, 2025

Two changes, which both affect Context, so I figure it's easier to review as one change.

@fboemer fboemer force-pushed the fboemer/flexible-context-for-he-scheme branch from 8049bc9 to 6b0799a Compare May 2, 2025 16:08
@fboemer fboemer force-pushed the fboemer/flexible-context-for-he-scheme branch 2 times, most recently from 657227d to 5a71a0a Compare May 2, 2025 16:34
@fboemer fboemer force-pushed the fboemer/flexible-context-for-he-scheme branch from 5a71a0a to 28c8e83 Compare May 2, 2025 16:38
@fboemer fboemer changed the title Fboemer/flexible context for he scheme Decouple Context and Scheme and make context for HeScheme May 2, 2025
@fboemer fboemer changed the title Decouple Context and Scheme and make context for HeScheme Decouple Context and Scheme and make HeScheme context flexible May 2, 2025
@fboemer fboemer added the ⚠️ semver/major Breaks existing public API label May 2, 2025
@fboemer fboemer marked this pull request as ready for review May 2, 2025 16:51
@fboemer fboemer requested review from karulont and RuiyuZhu as code owners May 2, 2025 16:51
@@ -24,7 +24,7 @@ import HomomorphicEncryption
let encryptParams =
try EncryptionParameters<UInt64>(from: .insecure_n_8_logq_5x18_logt_5)
// Perform pre-computation for HE computation with these parameters.
let context = try Context<Bfv<UInt64>>(encryptionParameters: encryptParams)
let context = try Bfv<UInt64>.Context(encryptionParameters: encryptParams)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, we could prefer this API:

Suggested change
let context = try Bfv<UInt64>.Context(encryptionParameters: encryptParams)
let context = try Context<UInt64>(encryptionParameters: encryptParams)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ semver/major Breaks existing public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant