[viff-devel] [PATCH 02 of 12] Implemented secret sharing command

Martin Geisler mg at lazybytes.net
Mon Jun 22 04:05:34 PDT 2009


Janus Dam Nielsen <janus.nielsen at alexandra.dk> writes:

>>> +            s1, xi = ls[0]
>>> +            s2, rhoi1 = ls[1]
>>> +            s3, rhoi2 = ls[2]
>>> +            s4, Cx = ls[3]
>>> +            if not (s1 and s2 and s3 and s4):
>>> +                raise OrlandiException("Cannot share number,
>>> trying to create share," + \
>>> +                                           " but a component did
>>> arrive properly.")
>>
>> Same problem as above with the backslashes. Also, I think we talked
>> about this, but it looks like gather_shares would be better than
>> ShareList since you must have all four shares anyway.
>
> I don't agree with this entirely. gather_shares ignores errors.

Yeah, sort of. It will still pass on the list of results in case of an
error, but some of them will be None or a Failure instance. But so
ShareList is fine.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090622/9bd2b9f6/attachment.pgp>


More information about the viff-devel mailing list