Hi everybody,
VIFF currently requires all protocols to be symmetric, meaning that all
players must do the same. So if P1 provides input, P2, ..., Pn must do
so as well. With three players this makes Runtime.shamir_share return
three values:
a, b, c = rt.shamir_share(input)
I think this works quite nicely, but there are obviously protocols where
only some of the players need to provide input and VIFF should support
those too. Today one has to supply dummy data which can be ignored, but
this is silly.
Because VIFF protocols are symmetric, all players can execute the same
Python program today. I really like this feature.
The question is how this can be extended in a convenient way -- how can
we introduce an asymmetry without ending up with programs like this
if rt.id == 1:
# do something for P1
elif rt.id == 2:
# do something for P2
else:
# do something for P3
Alternatively one could write three different source files, but this
does not scale to protocols with more players.
Please let me know if you get an idea for this!
--
Martin Geisler
_______________________________________________
viff-devel mailing list (http://viff.dk/)
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk