@vocdoni/proto 1.14.0 → 1.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vocdoni/proto",
3
- "version": "1.14.0",
3
+ "version": "1.14.3",
4
4
  "devDependencies": {
5
5
  "ts-node": "^9.1.1",
6
- "ts-proto": "^1.138.0",
6
+ "ts-proto": "^1.143.0",
7
7
  "tsup": "^6.5.0",
8
8
  "typescript": "^4.2.4"
9
9
  },
@@ -26,6 +26,8 @@ message StateDBVote {
26
26
  bytes Weight = 5;
27
27
  // overwriteCount stores the number of times this vote has been overwritten
28
28
  optional uint32 overwriteCount = 6;
29
+ // encryptionKeyIndexes stores the indexes of the encryption keys used to encrypt the vote
30
+ repeated uint32 encryptionKeyIndexes = 7;
29
31
  }
30
32
 
31
33
  message ProcessIdList {
@@ -109,8 +109,9 @@ message ProofArbo {
109
109
  }
110
110
  Type type = 1;
111
111
  bytes siblings = 2;
112
- bytes value = 3;
112
+ bytes leafWeight = 3;
113
113
  KeyType keyType = 4;
114
+ bytes votingWeight = 5;
114
115
  }
115
116
 
116
117
  // Groth16 zkSNARK proof + public inputs
@@ -327,8 +328,8 @@ message Process {
327
328
  optional string metadata = 26;
328
329
  // SourceNetworkId is the identifier of the network origin (where the process have been created)
329
330
  SourceNetworkId sourceNetworkId = 27;
330
- // MaxCensusSize is set by the Process creator.
331
- optional uint64 maxCensusSize = 28;
331
+ // MaxCensusSize is set by the Process creator, indicates the maximum number of votes that will be allowed.
332
+ uint64 maxCensusSize = 28;
332
333
  // RollingCensusRoot merkle root of the rolling census. Set by the
333
334
  // vocdoni-node when Mode.Process = true
334
335
  optional bytes rollingCensusRoot = 29;
@@ -422,6 +423,7 @@ message Validator {
422
423
  bytes pubKey = 2;
423
424
  uint64 power = 3;
424
425
  string name = 4;
426
+ uint32 keyIndex = 5;
425
427
  }
426
428
 
427
429
  message TendermintHeader {