Plans and profiles
A plan is an immutable description of everything a computation needs: the CKKS ring and modulus chain, the bootstrapping circuit, the rotation set, and any comparison or transciphering program. You create a plan once and generate keys from it.
Registered profiles
Section titled “Registered profiles”| Profile | Purpose |
|---|---|
YUENIX_PROFILE_CKKS64 |
General CKKS with 64-bit words and bootstrapping |
YUENIX_PROFILE_CKKS32 |
General CKKS with 32-bit words, smaller keys |
YUENIX_PROFILE_CI_SLIM64 |
Integer-slot bootstrapping used by the comparison programs |
YUENIX_PROFILE_XBOOT64 |
Bootstrapping tuned for transciphering outputs |
Each profile is a JSON file under share/yuenix/profiles. Its digest is recorded in yuenix-sdk.json, so an application can confirm which parameter set it is using.
Rotation keys
Section titled “Rotation keys”Rotations need a key for each distance. Pass the distances your circuit uses when creating the plan:
int32_t rotations[] = {1, 2, 4, 8, -1};yuenix_plan_create(ctx, YUENIX_PROFILE_CKKS64, rotations, 5, &plan);Bootstrapping keys are added automatically.
Capabilities
Section titled “Capabilities”yuenix_plan_query returns the slot count, input level and output level. Use these values instead of hard-coding them.
Custom profiles
Section titled “Custom profiles”You can supply a complete JSON profile instead of a registered one. See Custom bootstrapping profiles.
Security
Section titled “Security”Every shipped profile has a recorded lattice-estimator security screen. The SDK installs the results in share/yuenix/yuenix-security.json. Custom profiles are your responsibility: screen them with the same method before you use them in production.