emp-ag2pc icon indicating copy to clipboard operation
emp-ag2pc copied to clipboard

Alice is party 2 in the circuit?

Open bl4ck5un opened this issue 5 years ago • 7 comments

When using Bristol circuits, Alice's input actually corresponds to the 2nd party while Bob the first. This flip of order is really confusing. If it's intended, it better be clearly stated in the README.

E.g., Here https://github.com/emp-toolkit/emp-ag2pc/blob/163985c8a1637f64a1d1cfc5f75214d6d8ef06da/emp-ag2pc/2pc.h#L320-L324, Alice reads n2 bits from the input. The tests didn't catch this because they use the same input from both parties.

bl4ck5un avatar Jun 01 '19 03:06 bl4ck5un