votingSystem
Class DecryptedShare

java.lang.Object
  extended byvotingSystem.DecryptedShare
All Implemented Interfaces:
java.io.Serializable

public class DecryptedShare
extends java.lang.Object
implements java.io.Serializable

The class for holding the DecryptedShares from the decryption Servers

Author:
bent
See Also:
Serialized Form

Constructor Summary
DecryptedShare(java.math.BigInteger e, java.math.BigInteger z, java.math.BigInteger c, java.math.BigInteger ci, int id)
          Creates a DecryptedShare
 
Method Summary
 java.math.BigInteger getC()
           
 java.math.BigInteger getCi()
           
 java.math.BigInteger getE()
           
 int getTallyId()
           
 java.math.BigInteger getZ()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecryptedShare

public DecryptedShare(java.math.BigInteger e,
                      java.math.BigInteger z,
                      java.math.BigInteger c,
                      java.math.BigInteger ci,
                      int id)
Creates a DecryptedShare

Parameters:
e - The first part of the zero-knowledge proof of correctness. The random challenge calculated using the hash-function.
z - The other part of the zero-knowledge proof of correctness.
c - The unaltered result of the election
ci - The decrypted share from the server.
id - The id of the Server doing the encryption.
Method Detail

getTallyId

public int getTallyId()

getC

public java.math.BigInteger getC()

getCi

public java.math.BigInteger getCi()

getE

public java.math.BigInteger getE()

getZ

public java.math.BigInteger getZ()