Hi,

The bug is this line:
        cur_point = secret.field(i)

If the number of player exceed the size of the field then the function returns the wrong id (cur_point)?

Shamir secret sharing only works if the field is strictly bigger than
the number of players. Otherwise, there would not be enough points to
evaluate the polynomial in to get the shares.

Best regards,
Marcel

_______________________________________________
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk

Reply via email to