Home | Trees | Indices | Help |
|
---|
|
A share in the Orlandi runtime. A share in the Orlandi runtime is a 3-tuple ``(x_i, rho_i, Cr_i)`` of: - A share of a number, ``x_i`` - A tuple of two random numbers, ``rho_i = (rho_i1, rho_i2)`` - A commitment to the number and the random numbers, ``Cr_i`` The :class:`Runtime` operates on shares, represented by this class. Shares are asynchronous in the sense that they promise to attain a value at some point in the future. Shares overload the arithmetic operations so that ``x = a + b`` will create a new share *x*, which will eventually contain the sum of *a* and *b*. Each share is associated with a :class:`Runtime` and the arithmetic operations simply call back to that runtime.
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Initialize a share. If an initial value is given, it will be passed to callback right away.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 19 16:43:43 2009 | http://epydoc.sourceforge.net |