View Javadoc
1   /*
2    * This file is part of the Civitas software distribution.
3    * Copyright (c) 2007-2008, Civitas project group, Cornell University.
4    * See the LICENSE file accompanying this distribution for further license
5    * and copyright information.
6    */
7   package civitas.common.mix.votemix;
8   
9   import civitas.common.EncryptedVote;
10  import civitas.common.mix.VoterMix;
11  import lombok.Builder;
12  import lombok.Data;
13  import lombok.NonNull;
14  
15  @Data
16  @Builder(toBuilder = true)
17  public class VoteMix implements VoterMix {
18  	@NonNull public Integer number;
19  
20  	public byte @NonNull [] mixNonceHash;
21  
22  	public byte[][] commitments;
23  
24  	@NonNull public EncryptedVote[] votes;
25  
26  	@Deprecated
27  	public int size() {
28  		return votes.length;
29  	}
30  }