Giter VIP home page Giter VIP logo

tfhe's Introduction

TFHE

Continuous Integration

TFHEb is a Fork of a Rust port of the C++ library TFHE. Check out the overview paper for a more in-depth explanation of the scheme.

Usage

Add this to your Cargo.toml:

[dependencies]
tfhe = { git = "https://github.com/georgbramm/tfhe" }

Documentation

To generate and open the user-documentation for the crate in your browser, clone the repository and run the following:

cargo doc --all-features --open

If you wish to contribute to the code and want internal documentation for implementation details, run the following:

cargo doc --all-features --document-private-items --open

Crate Features

TFHE is built with these features enabled by default:

  • fft enables FFT for polynomial multiplication, improving speeds. No reason to disable this unless you wish to remove a transitive dependency and allow drastically lower performance.

Optionally, the following features can be enabled:

  • bootstrapping enables gate-bootstrapping, so that the bootstrapping procedure is performed after each gate. A user may wish to have this disabled to use circuit bootstrapping manually.

Testing

Tests can be run using cargo test.

Benchmarking

Benchmarks can be run using cargo bench.

Some benchmarks require specific features to be enabled. Required features are found in Cargo.toml under each specific benchmark's section, [[bench]].

Disclaimer

It is a very rough port and not all of the code is idiomatic Rust. Few of the optimizations of the original library are implemented, such as FFT on Lagrange complex polynomials, however may be added in the future.

This is developed as a research project, so I would not recommend to use this for anything more than experimental use.

I am not a cryptologist.

Contributions

Contributions both in terms of issues and pull requests are welcome. Please use the issue templates when filling out an issue. Do note that the project is experimental and has the scars from this as well.

License

This project is a Rust port of the C++ library TFHE, and is licensed under the Apache 2.0 License.

tfhe's People

Contributors

georgbramm avatar isaksundesingh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.