[viff-devel] Importing shares into VIFF
Hello! In my quest for using VIFF in a web application scenario, I have created three simple shares (positive integers) and stored them in a database. How do I import these shares into VIFF? m = Share(runtime, Zp, simple_share_value) I tried something like the code above, by I get a lot of errors, part of it saying: self.sendData(program_counter, share, share.value) exceptions.AttributeError: 'long' object has no attribute 'value' So, what is wrong and how do I fix it? I've kind of solved it by using some of Tord's ninja tricks, but I think what I'm trying to do really is quite simple. Best regards, Håvard ___ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk
Re: [viff-devel] Player thresholds
Thanks for clarifying! Guess there are a lot of different variations of the definitions, notions, etc. regarding secret sharing and MPC... One of my problems is that when running the included sort.py protocol with n=5 and t=2, the sorting of the array fails: Original array: [{33}, {61}, {95}, {67}, {37}] Sorted array: [{6692966529242218069}, {35128728804386641877}, {6621921405115695795}, {27880759555216652877}, {34356088148296101764}] Made 9 comparisons Works with n=5 and t=1 though... Mikkel Krøigård wrote: Citat af Håvard Vegge hava...@stud.ntnu.no: Hi! I'm trying to do some basic benchmarks with different number of players. A few questions: 1. Why have VIFF defined the threshold t to be the number of corrupt players, while the classical literature defines it as t participants can reconstruct the message? Well, in what I have read, it is most often referred to as the threshold for the number of tolerated corruptions, though yes I have also seen it described as the number of shares needed to reconstruct. I don't think there's anything wrong with the way we do it, as long as it is clearly defined. 2. Say I create the config files this way: python generate-config-files.py -n 5 -t 2 localhost:9001 localhost:9002 localhost:9003 localhost:9004 localhost:9005 Would this indicate that the polynomial is quadratic (of degree 2) and that 3 players in theory could reconstruct some secret? Yes. 3. Assume three of these five players provide input, while the last two players do not. Will all players still participate in the actual computation, or are the last two just passive spectators and receives only the output? -n 5 indicates that 5 servers will participate, regardless of how many will provide input. Think of it from the perspective of security. If the input was shared to 3 servers, we could not tolerate 2 corruptions. ___ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk
Re: [viff-devel] VIFF 1.0 this weekend
And mine is here: http://daim.idi.ntnu.no/masteroppgave?id=4559 Put it anywhere you like! håvard atl...@stud.ntnu.no wrote: Siterer Martin Geisler m...@lazybytes.net: Hi everybody, I would like to release what we currently have in VIFF as version 1.0 this weekend. The code has not evolved very much the last year, and releasing version 1.0 now will fit nicely with the reports we're writing for CACE and with my own dissertation :-) As preparation for that, I've made a small document about the applications where VIFF has been used: http://viff.dk/doc/applications.html Atle and Håvard: do you have your thesis' online somewhere? I would like to include links to them. I have your thesis' in PDF format already, so I would also be happy to host them on viff.dk if you prefer that? My thesis can be found at http://daim.idi.ntnu.no/masteroppgave?id=4699, also feel free to host it on the VIFF page :) Everybody: if someone wants to describe the Nordic Sugar auction then that would be super, otherwise I'll do it. Marcel has promissed to write something about the distributed RSA. Finally, if you have been sitting on a bugfix (small or large), then please put it in now :-) -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/. ___ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk