@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/.github/workflows/post-merge.yml +3 -4
- package/Makefile +3 -2
- package/README.md +12 -0
- package/dist/client-store/index.js +307 -122
- package/dist/client-store/index.mjs +307 -122
- package/dist/{index-85137ec5.d.ts → index-8a98085c.d.ts} +187 -87
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1896 -754
- package/dist/index.mjs +1896 -754
- package/dist/metadata/index.js +605 -233
- package/dist/metadata/index.mjs +605 -233
- package/dist/vochain/index.d.ts +1 -1
- package/dist/vochain/index.js +1122 -434
- package/dist/vochain/index.mjs +1122 -434
- package/package.json +2 -2
- package/src/vocdoni-node/statedb.proto +2 -0
- package/src/vochain/vochain.proto +5 -3
package/package.json
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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 {
|