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.
viff-devel mailing list (http://viff.dk/)