@vocdoni/proto 1.14.3 → 1.14.7

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.3",
3
+ "version": "1.14.7",
4
4
  "devDependencies": {
5
5
  "ts-node": "^9.1.1",
6
- "ts-proto": "^1.143.0",
6
+ "ts-proto": "^1.156.2",
7
7
  "tsup": "^6.5.0",
8
8
  "typescript": "^4.2.4"
9
9
  },
@@ -109,9 +109,9 @@ message ProofArbo {
109
109
  }
110
110
  Type type = 1;
111
111
  bytes siblings = 2;
112
- bytes leafWeight = 3;
112
+ bytes availableWeight = 3;
113
113
  KeyType keyType = 4;
114
- bytes votingWeight = 5;
114
+ bytes voteWeight = 5;
115
115
  }
116
116
 
117
117
  // Groth16 zkSNARK proof + public inputs
@@ -172,6 +172,9 @@ enum TxType {
172
172
  ADD_KEYKEEPER = 21;
173
173
  DELETE_KEYKEEPER = 22;
174
174
  CREATE_ACCOUNT = 23;
175
+ SET_ACCOUNT_SIK = 24;
176
+ DEL_ACCOUNT_SIK = 25;
177
+ REGISTER_SIK = 26;
175
178
  }
176
179
 
177
180
  message Tx {
@@ -187,6 +190,9 @@ message Tx {
187
190
  SetAccountTx setAccount = 9;
188
191
  CollectFaucetTx collectFaucet = 10;
189
192
  SetKeykeeperTx setKeykeeper = 11;
193
+ SIKTx setSIK = 12;
194
+ SIKTx delSIK = 13;
195
+ RegisterSIKTx registerSIK = 14;
190
196
  }
191
197
  }
192
198
 
@@ -216,6 +222,9 @@ message SetProcessTx {
216
222
  optional string censusURI = 7;
217
223
  optional Proof proof = 8;
218
224
  optional ProcessResult results = 9;
225
+ // tempSIKs flag decides if when the process has finished, the SIKs related
226
+ // to it will be removed or not
227
+ optional bool tempSIKs = 10;
219
228
  }
220
229
 
221
230
  message AdminTx {
@@ -266,6 +275,18 @@ message SetAccountTx {
266
275
  optional bytes account = 4;
267
276
  optional FaucetPackage faucetPackage = 5;
268
277
  repeated bytes delegates = 6;
278
+ optional bytes SIK = 7;
279
+ }
280
+
281
+ message SIKTx {
282
+ TxType txtype = 1;
283
+ optional bytes SIK = 3;
284
+ }
285
+
286
+ message RegisterSIKTx {
287
+ bytes electionId = 1;
288
+ Proof censusProof = 2;
289
+ bytes SIK = 3;
269
290
  }
270
291
 
271
292
  message CollectFaucetTx {
@@ -317,8 +338,7 @@ message Process {
317
338
  optional uint32 questionCount = 18;
318
339
  ProcessVoteOptions voteOptions = 19;
319
340
  CensusOrigin censusOrigin = 20;
320
- repeated ProcessResult results = 21;
321
- repeated bytes resultsSignatures = 22;
341
+ ProcessResult results = 21;
322
342
  optional uint32 ethIndexSlot = 23;
323
343
  // SourceBlockHeight is the block height of the origin blockchain (if any)
324
344
  optional uint64 sourceBlockHeight = 24;
@@ -345,6 +365,9 @@ message Process {
345
365
  // tokenDecimals represents the number of decimals of the token (i.e ERC20) used for voting.
346
366
  // It is normally used for processes with on-chain census
347
367
  optional uint32 tokenDecimals = 33;
368
+ // tempSIKs flag decides if when the process has finished, the SIKs related
369
+ // to it will be removed or not
370
+ optional bool tempSIKs = 34;
348
371
  }
349
372
 
350
373
  enum ProcessStatus {
@@ -452,13 +475,8 @@ message TendermintHeader {
452
475
  }
453
476
 
454
477
 
455
- // Scrutinizer
456
478
  message ProcessResult {
457
479
  repeated QuestionResult votes = 1;
458
- optional bytes processId = 2;
459
- optional bytes entityId = 3;
460
- optional bytes oracleAddress = 4;
461
- optional bytes signature = 5;
462
480
  }
463
481
 
464
482
  message QuestionResult {