emp-ag2pc
emp-ag2pc copied to clipboard
Alice is party 2 in the circuit?
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.