votingSystem
Class Vote
java.lang.Object
votingSystem.Vote
- All Implemented Interfaces:
- java.io.Serializable
- public class Vote
- extends java.lang.Object
- implements java.io.Serializable
Class for holding a Vote and its zero-knowledge proof of correctness
- Author:
- bent
- See Also:
- Serialized Form
Constructor Summary |
Vote(java.math.BigInteger _vote,
java.math.BigInteger[] _a,
java.math.BigInteger _challenge,
java.math.BigInteger[] _z,
java.math.BigInteger[] _e,
int id)
Creates a new vote |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Vote
public Vote(java.math.BigInteger _vote,
java.math.BigInteger[] _a,
java.math.BigInteger _challenge,
java.math.BigInteger[] _z,
java.math.BigInteger[] _e,
int id)
- Creates a new vote
- Parameters:
_vote
- The encrypted vote_a
- Part of the zero-knowledge proof_challenge
- The challenge in the zero-knowledge proof_z
- Part of the zero-knowledge proof_e
- id
- The voter's id
toString
public java.lang.String toString()
getA
public java.math.BigInteger[] getA()
getChallenge
public java.math.BigInteger getChallenge()
getE
public java.math.BigInteger[] getE()
getVote
public java.math.BigInteger getVote()
getZ
public java.math.BigInteger[] getZ()
getId
public int getId()