changeset 632:c4f413f47784

Corrected use of shamir_share in example.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 04 Apr 2008 10:34:07 +0200
parents 979fbf411c6e
children 6581d7c7bc99
files viff/runtime.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Fri Apr 04 10:31:19 2008 +0200
+++ b/viff/runtime.py	Fri Apr 04 10:34:07 2008 +0200
@@ -1086,7 +1086,7 @@
     code like this::
 
         def protocol(runtime):
-            a, b, c = runtime.shamir_share(input)
+            a, b, c = runtime.shamir_share([1, 2, 3], Zp, input)
 
             a = runtime.open(a)
             b = runtime.open(b)