API reference¶
Each module is a self-contained folder under modules/. A module is
Python-facing (ships a python/ package + a cdef exposing its C to
Python) or internal C-only (contributes compiled kernels used by other
modules, no Python symbols). A Python-facing module’s public API is its
__init__ re-exports.
Module |
Kind |
What it provides |
|---|---|---|
|
Python-facing |
RNS polynomial arithmetic over |
|
Python-facing |
The native handle ( |
|
Python-facing |
Basic primitives: the library’s randomness (BLAKE3-seeded PRNG, AES-CTR RNG, Box-Muller sampling, a seeded transcript sampler) and BLAKE3 Merkle trees |
|
Python-facing |
LWE / Module-LWE and MGSW: key generation, encryption, key-switching, arithmetic, and ring morphisms |
|
Python-facing |
Schemes on top of |
|
Python-facing |
Sketch of IOP prover/verifier framework (currently under development) |
|
Python-facing |
Basefold polynomial commitments over a foldable Reed-Solomon code (currently under development) |
|
Python-facing |
Arithmetic circuits (wire format in |
|
placeholder |
the top-level assembly that will tie the modules together |
Still to come, each its own module when it has code: a circuit compiler frontend lowering programs to GKR circuits, and the SNARK layer over the PIOP and its commitments.
Every module’s Python package is documented here from its docstrings, its
public API being what vfhe.<module> exports. The C headers of crypto
and util are documented from their Doxygen blocks; the other modules’
headers join as their blocks reach that standard.