@vocdoni/proto 1.14.4 → 1.15.1

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,44 +1,44 @@
1
1
  {
2
- "name": "@vocdoni/proto",
3
- "version": "1.14.4",
4
- "devDependencies": {
5
- "ts-node": "^9.1.1",
6
- "ts-proto": "^1.143.0",
7
- "tsup": "^6.5.0",
8
- "typescript": "^4.2.4"
9
- },
10
- "dependencies": {
11
- "long": "^5.2.1",
12
- "protobufjs": "^7.1.2"
13
- },
14
- "main": "dist/index.js",
15
- "types": "dist/index.d.ts",
16
- "module": "dist/index.mjs",
17
- "exports": {
18
- ".": {
19
- "import": "./dist/index.mjs",
20
- "require": "./dist/index.js",
21
- "types": "./dist/index.d.ts"
2
+ "name": "@vocdoni/proto",
3
+ "version": "1.15.1",
4
+ "devDependencies": {
5
+ "ts-node": "^9.1.1",
6
+ "ts-proto": "^1.156.1",
7
+ "tsup": "^6.5.0",
8
+ "typescript": "^4.2.4"
22
9
  },
23
- "./client-store": {
24
- "import": "./dist/client-store/index.mjs",
25
- "require": "./dist/client-store/index.js",
26
- "types": "./dist/client-store/index.d.ts"
10
+ "dependencies": {
11
+ "long": "^5.2.1",
12
+ "protobufjs": "^7.1.2"
27
13
  },
28
- "./metadata": {
29
- "import": "./dist/metadata/index.mjs",
30
- "require": "./dist/metadata/index.js",
31
- "types": "./dist/metadata/index.d.ts"
14
+ "main": "dist/index.js",
15
+ "types": "dist/index.d.ts",
16
+ "module": "dist/index.mjs",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./dist/index.mjs",
20
+ "require": "./dist/index.js",
21
+ "types": "./dist/index.d.ts"
22
+ },
23
+ "./client-store": {
24
+ "import": "./dist/client-store/index.mjs",
25
+ "require": "./dist/client-store/index.js",
26
+ "types": "./dist/client-store/index.d.ts"
27
+ },
28
+ "./metadata": {
29
+ "import": "./dist/metadata/index.mjs",
30
+ "require": "./dist/metadata/index.js",
31
+ "types": "./dist/metadata/index.d.ts"
32
+ },
33
+ "./vochain": {
34
+ "import": "./dist/vochain/index.mjs",
35
+ "require": "./dist/vochain/index.js",
36
+ "types": "./dist/vochain/index.d.ts"
37
+ },
38
+ "./package.json": "./package.json"
32
39
  },
33
- "./vochain": {
34
- "import": "./dist/vochain/index.mjs",
35
- "require": "./dist/vochain/index.js",
36
- "types": "./dist/vochain/index.d.ts"
37
- },
38
- "./package.json": "./package.json"
39
- },
40
- "scripts": {
41
- "build": "make ts && tsup --dts",
42
- "clean": "rm -Rf dist build/ts"
43
- }
40
+ "scripts": {
41
+ "build": "make ts && tsup --dts",
42
+ "clean": "rm -Rf dist build/ts"
43
+ }
44
44
  }
@@ -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
 
@@ -266,6 +272,18 @@ message SetAccountTx {
266
272
  optional bytes account = 4;
267
273
  optional FaucetPackage faucetPackage = 5;
268
274
  repeated bytes delegates = 6;
275
+ optional bytes SIK = 7;
276
+ }
277
+
278
+ message SIKTx {
279
+ TxType txtype = 1;
280
+ optional bytes SIK = 3;
281
+ }
282
+
283
+ message RegisterSIKTx {
284
+ bytes electionId = 1;
285
+ Proof censusProof = 2;
286
+ bytes SIK = 3;
269
287
  }
270
288
 
271
289
  message CollectFaucetTx {
@@ -317,8 +335,7 @@ message Process {
317
335
  optional uint32 questionCount = 18;
318
336
  ProcessVoteOptions voteOptions = 19;
319
337
  CensusOrigin censusOrigin = 20;
320
- repeated ProcessResult results = 21;
321
- repeated bytes resultsSignatures = 22;
338
+ ProcessResult results = 21;
322
339
  optional uint32 ethIndexSlot = 23;
323
340
  // SourceBlockHeight is the block height of the origin blockchain (if any)
324
341
  optional uint64 sourceBlockHeight = 24;
@@ -452,13 +469,8 @@ message TendermintHeader {
452
469
  }
453
470
 
454
471
 
455
- // Scrutinizer
456
472
  message ProcessResult {
457
473
  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
474
  }
463
475
 
464
476
  message QuestionResult {
Binary file