snwagh / falcon-public

Implementation of protocols in Falcon
89 stars 45 forks source link

Functions in Precompute.cpp #21

Closed imtiyazuddin closed 2 years ago

imtiyazuddin commented 3 years ago

As I understand, all the functions in Precompute.cpp (currently) are just initializing values to 0, can you give a one liner for these functions and how to re-write them ??

snwagh commented 3 years ago

If I understand your goals correctly, you want to re-randomize the values. For instance, in this example of generating a triple, you can (1) pick random values for a, b and then compute c as a*b and (2) Generate random shares for a, b, c so each party can receive their appropriate share. You might need to pass/use the partyNum (party identifier inside Precompute.cpp) to achieve this. Note that even with this implementation, it is not secure for multiple reasons (main one, the randomness is generated on a single executable).

imtiyazuddin commented 2 years ago

Ok, will look into it