threshold-elgamal 0.1.30 → 0.1.32
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/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -178,25 +178,26 @@ const aggregatedEncryptedVoteOption2 = encryptedVotesOption2.reduce(
|
|
|
178
178
|
const decryptionSharesOption1 = [
|
|
179
179
|
createDecryptionShare(
|
|
180
180
|
aggregatedEncryptedVoteOption1,
|
|
181
|
-
|
|
181
|
+
// The order of the shares does not matter during decryption.
|
|
182
|
+
participant3Keys.privateKey,
|
|
182
183
|
),
|
|
183
184
|
createDecryptionShare(
|
|
184
185
|
aggregatedEncryptedVoteOption1,
|
|
185
|
-
|
|
186
|
+
participant1Keys.privateKey,
|
|
186
187
|
),
|
|
187
188
|
createDecryptionShare(
|
|
188
189
|
aggregatedEncryptedVoteOption1,
|
|
189
|
-
|
|
190
|
+
participant2Keys.privateKey,
|
|
190
191
|
),
|
|
191
192
|
];
|
|
192
193
|
const decryptionSharesOption2 = [
|
|
193
194
|
createDecryptionShare(
|
|
194
195
|
aggregatedEncryptedVoteOption2,
|
|
195
|
-
|
|
196
|
+
participant2Keys.privateKey,
|
|
196
197
|
),
|
|
197
198
|
createDecryptionShare(
|
|
198
199
|
aggregatedEncryptedVoteOption2,
|
|
199
|
-
|
|
200
|
+
participant1Keys.privateKey,
|
|
200
201
|
),
|
|
201
202
|
createDecryptionShare(
|
|
202
203
|
aggregatedEncryptedVoteOption2,
|