Updated the VoterRegistry.proto file according to the new timestamp of the unsingedBulletinBoardMessage.
parent
6359f74a7b
commit
9c52eff109
|
@ -9,8 +9,8 @@ import meerkat.bulletinboard.ThreadedBulletinBoardClient;
|
||||||
import meerkat.crypto.concrete.ECDSASignature;
|
import meerkat.crypto.concrete.ECDSASignature;
|
||||||
import meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage;
|
import meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage;
|
||||||
import meerkat.protobuf.BulletinBoardAPI.MessageFilterList;
|
import meerkat.protobuf.BulletinBoardAPI.MessageFilterList;
|
||||||
|
import meerkat.protobuf.VoterRegistry;
|
||||||
import meerkat.protobuf.VoterRegistry.GroupID;
|
import meerkat.protobuf.VoterRegistry.GroupID;
|
||||||
import meerkat.protobuf.VoterRegistry.VoterGroup;
|
|
||||||
import meerkat.protobuf.VoterRegistry.VoterID;
|
import meerkat.protobuf.VoterRegistry.VoterID;
|
||||||
import meerkat.protobuf.VoterRegistry.VoterInfo;
|
import meerkat.protobuf.VoterRegistry.VoterInfo;
|
||||||
import meerkat.protobuf.Voting;
|
import meerkat.protobuf.Voting;
|
||||||
|
@ -227,9 +227,9 @@ public class SimpleRegistryTest extends TestCase {
|
||||||
|
|
||||||
String voterId = new BigInteger(130, random).toString(32);
|
String voterId = new BigInteger(130, random).toString(32);
|
||||||
String groupId = new BigInteger(130, random).toString(32);
|
String groupId = new BigInteger(130, random).toString(32);
|
||||||
VoterGroup voterInfo = VoterGroup.newBuilder()
|
VoterRegistry.VoterRegistryMessage voterInfo = VoterRegistry.VoterRegistryMessage.newBuilder()
|
||||||
.setVoterId(VoterID.newBuilder().setId(voterId))
|
.setVoterID(VoterID.newBuilder().setId(voterId))
|
||||||
.setGroupId(GroupID.newBuilder().setId(groupId)).build();
|
.addGroupID(GroupID.newBuilder().setId(groupId)).build();
|
||||||
|
|
||||||
SimpleRegistry registry = new SimpleRegistry(signer, bulletinBoardClient, certStream);
|
SimpleRegistry registry = new SimpleRegistry(signer, bulletinBoardClient, certStream);
|
||||||
registry.AddToGroups(voterInfo, handler);
|
registry.AddToGroups(voterInfo, handler);
|
||||||
|
@ -260,9 +260,9 @@ public class SimpleRegistryTest extends TestCase {
|
||||||
|
|
||||||
String voterId = new BigInteger(130, random).toString(32);
|
String voterId = new BigInteger(130, random).toString(32);
|
||||||
String groupId = new BigInteger(130, random).toString(32);
|
String groupId = new BigInteger(130, random).toString(32);
|
||||||
VoterGroup voterInfo = VoterGroup.newBuilder()
|
VoterRegistry.VoterRegistryMessage voterInfo = VoterRegistry.VoterRegistryMessage.newBuilder()
|
||||||
.setVoterId(VoterID.newBuilder().setId(voterId))
|
.setVoterID(VoterID.newBuilder().setId(voterId))
|
||||||
.setGroupId(GroupID.newBuilder().setId(groupId)).build();
|
.addGroupID(GroupID.newBuilder().setId(groupId)).build();
|
||||||
|
|
||||||
this.certStream = getClass().getResourceAsStream(CERT1_PEM_EXAMPLE);
|
this.certStream = getClass().getResourceAsStream(CERT1_PEM_EXAMPLE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue