Janus Dam Nielsen <janus.niel...@alexandra.dk> writes: >>> + s1, xi = ls >>> + s2, rhoi1 = ls >>> + s3, rhoi2 = ls >>> + s4, Cx = ls >>> + 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/.
Description: PGP signature
_______________________________________________ viff-devel mailing list (http://viff.dk/) firstname.lastname@example.org http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk