gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r23907 - gnunet-java/src/org/gnunet/voting


From: gnunet
Subject: [GNUnet-SVN] r23907 - gnunet-java/src/org/gnunet/voting
Date: Thu, 20 Sep 2012 12:04:50 +0200

Author: dold
Date: 2012-09-20 12:04:50 +0200 (Thu, 20 Sep 2012)
New Revision: 23907

Modified:
   gnunet-java/src/org/gnunet/voting/VotingSimulation.java
Log:
comments


Modified: gnunet-java/src/org/gnunet/voting/VotingSimulation.java
===================================================================
--- gnunet-java/src/org/gnunet/voting/VotingSimulation.java     2012-09-20 
09:44:48 UTC (rev 23906)
+++ gnunet-java/src/org/gnunet/voting/VotingSimulation.java     2012-09-20 
10:04:50 UTC (rev 23907)
@@ -30,12 +30,17 @@
         final BigInteger g = parameters.getP();
 
         final int authorityCount = 5;
+        // minimum required number of cooperating authorities
         final int k = 3;
 
+        // parts of the private key x, one part for each authority
         BigInteger[] xParts = new BigInteger[authorityCount];
+        // The full private key, sum of the parts. Initialized with the 
additive identity.
+        BigInteger x = BigInteger.ZERO;
+
+        // parts of the public key h, one part for each authority
         BigInteger[] hParts = new BigInteger[authorityCount];
-
-        BigInteger x = BigInteger.ZERO;
+        // The full public key, product of the parts. Initialized with the 
multiplicative identity.
         BigInteger h = BigInteger.ONE;
 
         for (int j = 0; j < authorityCount; ++j) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]