Availability of a C API

I was wondering: Is there - or is it planned to create - a C API planned for OpenFHE? If yes, it would make it much easier to provide bindings to OpenFHE in other programming languages. Nearly all modern programming languages support native (or at least easy-to-use) interoperability with C, while C++ with its many intricacies is an entirely different beast. Just as in example, in Julia the package Clang.jl allows one to automatically generate Julia bindings for a C library based on C header files.

Thank you for the suggestion. I am personally not aware of any C API for OpenFHE (if someone is aware of such an API, please post about it here). All other wrappers I am aware of, i.e., python, rust, wasm, work with the C++ API. It is certainly an interesting idea to consider for the future.

Fair enough. I guess now that openfhe-python has already done all the legwork of handcrafting bindings using pybind11, there’s not much to gain here anymore. I was just thinking that most languages usually have a way to interface with C, thus having a C API would immediately open up interoperability with a host of new languages, allowing OpenFHE applications to be built in a more flexible manner.

OTOH, with Python, rust, Julia, wasm more or less covered, maybe there are not that many languages left that would realistically benefit from a C API (although C itself, Swift, Go, maybe Fortran might still be interesting targets).