fhelium.core.context
Immutable CKKS context metadata.
CkksContextSpec
class View source
python
CkksContextSpec(logN: int, default_scale: float, q_moduli: tuple[int, ...], p_moduli: tuple[int, ...] = (), galois_generator: int = 3)1
Device-placement-independent CKKS context description.
The context fixes default_scale is not an invariant imposed on values: every plaintext and ciphertext carries its own actual scale
Attributes
| Name | Type | Default/value |
|---|---|---|
representation | ClassVar[str] | 'direct_per_value_scale_v1' |
logN | int | |
default_scale | float | |
q_moduli | tuple[int, ...] | |
p_moduli | tuple[int, ...] | () |
galois_generator | int | 3 |
N
property
python
N: int1
num_slots
property
python
num_slots: int1
num_q_primes
property
python
num_q_primes: int1
num_p_primes
property
python
num_p_primes: int1
context_id
property
python
context_id: str1
Stable SHA-256 identity of all mathematical context parameters.