A fork of https://github.com/fairmath/openfhe-rs to add some missing functionality
|
|
1 year ago | |
|---|---|---|
| examples | 1 year ago | |
| src | 1 year ago | |
| .gitignore | 1 year ago | |
| Cargo.toml | 1 year ago | |
| LICENSE | 1 year ago | |
| README.md | 1 year ago | |
| build.rs | 1 year ago |
☀️ OpenFHE-rs is a joint project by FairMath & OpenFHE
OpenFHE-rs is a Rust interface for the OpenFHE library. OpenFHE is known for its wide range of Fully Homomorphic Encryption (FHE) schemes, all implemented in C++. We're bringing this capability to Rust developers.
By offering a Rust wrapper for OpenFHE, we make it easier for Rust devs to use advanced FHE schemes in their projects. Whether you're building secure data processing apps or privacy-focused tools, OpenFHE-rs helps you do that with the power of OpenFHE's encryption technology.
The library is under development and the ETA of the first version is set to Q2 2024.
On Debian systems, everything can be installed with the following command:
sudo apt install build-essential libssl-dev cmake clang git
Build and install OpenFHE library. Right now you need to use the Fair Math fork. It contains the required features, which will be included in the next planned release (v1.1.5):
git clone https://github.com/fairmath/openfhe.git
cd openfhe
cmake -B ${OPENFHE_BUILD:-build} -DBUILD_EXAMPLES=ON -DBUILD_EXTRAS=ON -DBUILD_SHARED=ON .
make -C ${OPENFHE_BUILD:-build} -j$(nproc)
make -C ${OPENFHE_BUILD:-build} install
sudo ldconfig
Make sure you have rustc with cargo installed first.
Clone the Fair Math openfhe-rs repo to your local machine and build:
Clone the repository
git clone https://github.com/fairmath/openfhe-rs.git
cd openfhe-rs
bash
cargo build
Run tests
cargo test -- --test-threads=1
bash
cargo run --example polynomial_evaluation