How to use the agmpc_matcher_napi function from bindings
Find comprehensive JavaScript bindings.agmpc_matcher_napi code examples handpicked from public code repositorys.
218 219 220 221 222 223 224 225 226 227
ports.push(parseInt(partyIpDhtport[1])+2) // mpc port is offset by 2 } const requesterPartyNum = 1; const capacity = 5; const bid = 0; //ignored const res = binding.agmpc_matcher_napi(ips, ports, requesterPartyNum, capacity, bid, this.msdelay); const winnerIndex = res[0]; const winnerPrice = res[1]; if (!winnerIndex || !winnerPrice) { console.log('mpc failed with no output file')
0
0
0
488 489 490 491 492 493 494 495 496 497
ips.push(partyIpDhtport[0]) ports.push(parseInt(partyIpDhtport[1])+2) // mpc port is offset by 2 } const capacity = crdDef.secretQuantityRemaining; console.log(`capacity: ${capacity}`) const res = binding.agmpc_matcher_napi(ips, ports, myIndex, parseInt(capacity), parseInt(bid)); const winnerIndex = res[0]; const winnerPrice = res[1]; if (!winnerIndex || !winnerPrice) { console.log('mpc failed')
0
0
0
bindings.createKey is the most popular function in bindings (8616 examples)