snwagh / falcon-public

Implementation of protocols in Falcon
89 stars 45 forks source link

Problems of r and rPrime generation in getDividedShares() function #13

Open dujifeng opened 3 years ago

dujifeng commented 3 years ago

In your code, you just set r = 0 and rPrime = 0, which is unsecure. Can you tell me how to generate r and rPrime correctly?

snwagh commented 3 years ago

The codebase doesn't implement the pre-processing. While there may be different ways to generate the preprocessing, one specific way is described in the section on Share Truncation 2 in ABY3 (page 14).