Updated the VoterRegistry.proto file according to the new timestamp of the unsingedBulletinBoardMessage.

Voter-Registry
Vladimir Eliezer Tokarev 2016-03-04 06:05:06 -08:00
parent 6359f74a7b
commit 9c52eff109
1 changed files with 7 additions and 7 deletions

View File

@ -9,8 +9,8 @@ import meerkat.bulletinboard.ThreadedBulletinBoardClient;
import meerkat.crypto.concrete.ECDSASignature;
import meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage;
import meerkat.protobuf.BulletinBoardAPI.MessageFilterList;
import meerkat.protobuf.VoterRegistry;
import meerkat.protobuf.VoterRegistry.GroupID;
import meerkat.protobuf.VoterRegistry.VoterGroup;
import meerkat.protobuf.VoterRegistry.VoterID;
import meerkat.protobuf.VoterRegistry.VoterInfo;
import meerkat.protobuf.Voting;
@ -227,9 +227,9 @@ public class SimpleRegistryTest extends TestCase {
String voterId = new BigInteger(130, random).toString(32);
String groupId = new BigInteger(130, random).toString(32);
VoterGroup voterInfo = VoterGroup.newBuilder()
.setVoterId(VoterID.newBuilder().setId(voterId))
.setGroupId(GroupID.newBuilder().setId(groupId)).build();
VoterRegistry.VoterRegistryMessage voterInfo = VoterRegistry.VoterRegistryMessage.newBuilder()
.setVoterID(VoterID.newBuilder().setId(voterId))
.addGroupID(GroupID.newBuilder().setId(groupId)).build();
SimpleRegistry registry = new SimpleRegistry(signer, bulletinBoardClient, certStream);
registry.AddToGroups(voterInfo, handler);
@ -260,9 +260,9 @@ public class SimpleRegistryTest extends TestCase {
String voterId = new BigInteger(130, random).toString(32);
String groupId = new BigInteger(130, random).toString(32);
VoterGroup voterInfo = VoterGroup.newBuilder()
.setVoterId(VoterID.newBuilder().setId(voterId))
.setGroupId(GroupID.newBuilder().setId(groupId)).build();
VoterRegistry.VoterRegistryMessage voterInfo = VoterRegistry.VoterRegistryMessage.newBuilder()
.setVoterID(VoterID.newBuilder().setId(voterId))
.addGroupID(GroupID.newBuilder().setId(groupId)).build();
this.certStream = getClass().getResourceAsStream(CERT1_PEM_EXAMPLE);