public Value toValue() {
		Value result = Value.create();
		
		int index = 0;
		for(AnonymousVote v : listOfVotes) {
			Value votes = result.getNewChild(ValueIdentifiers.getVotes());
			votes.getNewChild(ValueIdentifiers.getIndex()).setValue(index++);
			for(int i = 0; i < v.getEncryptedVote().length; i++) {
				Value vote = votes.getNewChild(ValueIdentifiers.getVote());
				vote.getNewChild(ValueIdentifiers.getElectionOptionId()).setValue(i);
				vote.getNewChild(ValueIdentifiers.getEncryptedVote()).setValue(new ByteArray(v.getEncryptedVote()[i]));
			}
		}
		result.getNewChild(ValueIdentifiers.getSignature()).setValue(new ByteArray(signature));
		return result;
	}