cmake . -B build
cd build
make -j
- Move the generators.txt into the
build
directory. - Move adv-gen-sc.sh and
adv-gen-sc-interactive.sh into the
build
directory.
- Run
bash adv-gen-sc.sh BIDDER-NUM BUCKET-NUM DIR-TO-STORE-SHARES DIR-TO-STORE-COMMITMENTS
frombuild
directory.- The script also generates three files, each containing all
file names of
share1
,share2
andcommitments
, with a prefix$ADV_NUM-$BUCKET_NUM-
. DIR-TO-STORE-SHARES
is the directory where the generated shares are stored andDIR-TO-STORE-COMMITMENTS
is the directory where the generated commitments are stored.- To generate materials of
non-interactive
,2-round-interactive
,4-round-interactive
variants, setBUCKET-NUM
to10000
,100
, and10
respectively.
- The script also generates three files, each containing all
file names of
- Run
bash adv-gen-sc-interactive.sh $BIDDER-NUM $BUCKET $SHARE_DIR $COMMIT_DIR $round
to generate shares and commitments locally.BUCKET-NUM
should be set to100
and10
for interactive protocol of 2-round and 4-round respectively.BUCKET-NUM
here refers to the number of buckets the servers use to compute in each round of interactive protocol.SHARE_DIR
is the directory where the generated shares are stored andCOMMIT_DIR
is the directory where the generated commitments are stored.- The script creates a directory
${ROUND}-interactive-id
, where there are3*ROUND
files, each containing all file names ofshare1
,share2
andcommitments
materials forr
round,$r-round-s1-idx
,$r-round-s2-idx
, and$r-round-commit-idx
.
Follow the instruction of Generate materials for throughput evaluation
.
Follow the instruction of Generate local verification materials for verification
, but only need to set BUCKET-NUM
to 10000
.