viff

changeset 1537:9c938858c46b

Improved documentation for shamir.recombine() method.
author Thomas P Jakobsen <tpj@cs.au.dk>
date Wed, 11 Aug 2010 11:47:45 +0200
parents 4e36cad23bc1
children 9d4f9551644c
files viff/shamir.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/viff/shamir.py	Wed Aug 11 11:04:19 2010 +0200
     1.2 +++ b/viff/shamir.py	Wed Aug 11 11:47:45 2010 +0200
     1.3 @@ -97,6 +97,9 @@
     1.4      Shares is a list of *threshold* + 1 ``(player id, share)`` pairs.
     1.5      Recombination is done in the optional point *x_recomb*.
     1.6      
     1.7 +    Note that player ids must be elements in the same field as the
     1.8 +    shares or otherwise the algorithm will not work.
     1.9 +    
    1.10      >>> from field import GF
    1.11      >>> Zp = GF(19)
    1.12      >>> shares = [(Zp(i), 7 * Zp(i) + 3) for i in range(1, 4)]