Coder Social home page Coder Social logo

fhe-auction's Introduction

FHE auctions

Implements bit slice approach for private auctions as described in 2002/189.

Uses tfhe-rs to implement boolean gates using p-encoding technique as described in 2023/1589.

TFHE parameters are obtained via concrete-optimiser and has 128-bit of security.

Costs

Auction circuit runtime increase linearly with $k$ and $n$, where $n$ is no. of bidders and $k$ is bits in bid (for ex, 64 bits, 128 bits)

Since a bid of $k$ bits is represented as $k$ LWE ciphertexts, each bidder needs to upload $k$ LWE ciphertexts.

Test

On x86_64 based machines set tfhe-rs dependecy in cargo.toml as

tfhe = {git = "https://github.com/Janmajayamall/tfhe-rs.git", features = ["boolean", "shortint", "integer", "p-encoding","x86_64-unix"]}

On apple-silicon or aarch-64 based machines set tfhe-rs dependecy in cargo.toml as

tfhe = {git = "https://github.com/Janmajayamall/tfhe-rs.git", features = ["boolean", "shortint", "integer", "p-encoding","aarch64-unix"]}

then run cargo test --release tests::auction_circuit_works -- --nocapture

fhe-auction's People

Contributors

janmajayamall avatar

Stargazers

ER avatar  avatar Sam Richards avatar Joseph Kibira avatar John Johnson avatar Dist Bit avatar cyphersnake avatar Fede Rava avatar Lance avatar  avatar Kevin Mai-Husan Chia avatar Paul-T.C-Yu avatar Owen avatar Hiroyuki Tachibana avatar Shinnosuke Tsukada avatar Théo Madzou avatar V.O.T avatar Maddiaa 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.