This is a the implementation of our CCS 2021 paper: Efficient Linear Multiparty PSI and Extensions to Circuit/Quorum PSI [ePrint], using table OPPRF as implemented in: [MultipartyPSI] and arithmetic circuit as implemented in: [MPCHonestMajority]. The implementation is built almost entirely on the implementation in [MultipartyPSI].
C++ compiler with C++14 support. There are several library dependencies including Boost
, Miracl
, NTL
, and libOTe
. For libOTe
, it requires CPU supporting PCLMUL
, AES-NI
, and SSE4.1
. Optional: nasm
for improved SHA1 performance. Our code has been tested on both Windows (Microsoft Visual Studio) and Linux. To install the required libraries:
- windows: open PowerShell,
cd ./thirdparty
, and.\all_win.ps1
(the script works with Visual Studio 2015. For other version, you should modifyMSBuild
at several places in the script.) - linux:
cd ./thirdparty
, andbash .\all_linux.get
.
Also installlibscapi
.
NOTE: If you meet problem with all_win.ps1
or all_linux.get
which builds boost, miracl and libOTe, please follow the more manual instructions at libOTe
After cloning project from git,
- build cryptoTools,libOTe, and libOPRF projects in order.
- add argument for bOPRFmain project (for example: -u)
- run bOPRFmain project
make (requirements: CMake
, Make
, g++
or similar)
The database is generated randomly. The outputs include the average online/offline/total runtime that displayed on the screen and output.txt.
-u unit test which computes PSI of 5 paries, 2 dishonestly colluding, each with set size 2^12 in semihonest setting
-n number of parties
-p party ID
-m set size as a power of 2 (i.e for set size 2^12 = 4096 enter 12)
-t number of corrupted parties (in semihonest setting)
-a run in augmented semihonest model. Table-based OPPRF is by default.
0: Table-based; 1: POLY-seperated; 2-POLY-combined; 3-BloomFilter
-r optimized 3PSI when r = 1
-F output file
./bin/frontend.exe -u
Compute PSI of 5 parties, 2 dishonestly colluding, each with set size 2^12 in semihonest setting
./bin/frontend.exe -n 5 -t 2 -m 12 -p 0 -F output.txt
& ./bin/frontend.exe -n 5 -t 2 -m 12 -p 1 -F output.txt
& ./bin/frontend.exe -n 5 -t 2 -m 12 -p 2 -F output.txt
& ./bin/frontend.exe -n 5 -t 2 -m 12 -p 3 -F output.txt
& ./bin/frontend.exe -n 5 -t 2 -m 12 -p 4 -F output.txt
Alternatively, you can run
./run\_protocol.sh 0 4 5 2 12 output.txt
1. git clone https://github.com/osu-crypto/MultipartyPSI.git
2. cd thirdparty/
3. bash all_linux.get
4. cd ..
5. cmake .
6. make -j
7. ./run\_protocol.sh 0 4 5 2 12 output.txt
For any questions on building or running the library, please contact Akash Shah or Nishka Dasgupta at akashshah08 at outlook dot com or nishka dot dasgupta at yahoo dot com for queries regarding the circuit code