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 wrap: on
line diff
--- a/viff/shamir.py	Wed Aug 11 11:04:19 2010 +0200
+++ b/viff/shamir.py	Wed Aug 11 11:47:45 2010 +0200
@@ -97,6 +97,9 @@
     Shares is a list of *threshold* + 1 ``(player id, share)`` pairs.
     Recombination is done in the optional point *x_recomb*.
     
+    Note that player ids must be elements in the same field as the
+    shares or otherwise the algorithm will not work.
+    
     >>> from field import GF
     >>> Zp = GF(19)
     >>> shares = [(Zp(i), 7 * Zp(i) + 3) for i in range(1, 4)]