diff --git a/demos/cnnmnist.py b/demos/cnnmnist.py index 0d89b722..edc9d513 100644 --- a/demos/cnnmnist.py +++ b/demos/cnnmnist.py @@ -23,7 +23,7 @@ def scale_to_int(f): if secnum.field.frac_length == 0: - scale = lambda a: secnum(round(a * f)) + scale = lambda a: secnum(int(round(a * f))) # force Python integers else: scale = secnum return np.vectorize(scale) diff --git a/docs/index.html b/docs/index.html index 9171664e..de27b5d4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@
- mpyc (version 0.5) | index c:\users\berry\documents\github\mympyc\mpyc\__init__.py |
MPyC is a Python package for secure multi-party computation (MPC).
@@ -16,9 +16,9 @@
The MPC protocols are based on Shamir's threshold secret sharing scheme
and withstand passive adversaries controlling less than half of the parties.
-Secure finite field arithmetic is supported for fields of prime order
-and fields of characteristic two. Secure integer and fixed-point arithmetic
-is supported for parameterized number ranges, also including support
+Secure finite field arithmetic is supported for fields of arbitrary order, as
+long as the order exceeds the number of parties. Secure integer and fixed-point
+arithmetic is supported for parameterized number ranges, also including support
for comparison and bitwise operations.
These operations are all available via Python's operator overloading.
Some operations for container datatypes holding secret-shared data items
@@ -31,20 +31,22 @@
asyncoro
-bfield
-gf2x
+finfields
+gfpx
gmpy
-pfield
+mpctools
random
runtime
+seclists
sectypes
+statistics
thresha
-
+
Data | ||
- | __license__ = 'Apache License 2.0' |