jiff icon indicating copy to clipboard operation
jiff copied to clipboard

gmw_and failing occasionally in parallel case with party_count>2

Open YuwanXiao opened this issue 5 years ago • 0 comments

Bug report

under Branch 197_GMW
commit dbd50b91355cdd16b89193b5a44cccba33610949

bug detail:

  1. gmw_and fails under parallel tests.
  2. but works for parallel with party_count=2

reproduce:

  1. can run the demos/GMW_demo test to do a simple check . it might be easier to reproduce with input changing to all 1 in demo test line 30. inputs[i+1].push(1); //Math.floor((Math.random() * maxValue))

  2. update test suite protocol.json with party_count>2 to test. need to run several since the bug happens occasionally.

related file: jiff/lib/client/protocols/gmw_bit/ (IO.js and gmw.js) and commit merge ot listen into lib

failed try outs:

  1. add op_id in IO.js line25 to
    op_id: op_id or op_id: op_id+'-'+tag do not make difference var message_to_send = {tag: 'OT', party_id: to_party, message: msg, op_id : op_id encrypted: true};

  2. update function generate_op_id_ot with unique seed in counter file do not make difference.

it seems the opId is unique when we resolve msg in ot_receive file.

since the parallel fails on >2. it may be involved with op_id matching in ot send and receive.

YuwanXiao avatar Aug 20 '20 16:08 YuwanXiao