Skip to content

amerigal/shuffle-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lattice-based verifiable mix-net

Code accompannying the paper "Verifiable Mix-Nets and Distributed Decryption for Voting from Lattice-Based Assumptions", accepted for publication at ACM CCS 2023.

Caution

This repository is a fork of https://github.com/dfaranha/lattice-verifiable-mixnet. It presents an attack that demonstrates a soundness issue in the proof of shuffle from the paper.

Depedencies are the NFLlib and FLINT 2.9 libraries. NFLLib is already included in this repository, but instructions for installing its dependencies can be found in the link above. FLINT is usually included in package managers and can be easily installed in most systems out there.

Building dependencies

To build NFLLib, run the following inside a cloned version of this repository:

$ mkdir deps
$ cd deps
$ cmake ../NFLlib -DCMAKE_BUILD_TYPE=Release -DNFL_OPTIMIZED=ON
$ make
$ make test

Building and running the code

For building the actual code, run make inside the source directory. This will build the binaries for bdlop, bgv, pismall, pibnd and shuffle to test and benchmark different modules of the code.

The binaries respectively implement the BDLOP commitment scheme, the distributed BGV cryptosystem, the two zero-knowledge proofs and the shuffle itself. Tests and benchmarks are included for each of them, such that they can be used independently. NFLlib is quite memory-hungry due to being a template library, so we recommend to adjust the stack size with ulimit -s unlimited to avoid crashing in the largest benchmarks.

WARNING: This is an academic proof of concept, and in particular has not received code review. This implementation is NOT ready for any type of production use.

About

Attack demonstrating a soundness issue in the proof of shuffle from "Verifiable Mix-Nets and Distributed Decryption for Voting from Lattice-Based Assumptions".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors