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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. 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
- participant1Keys.privateKey,
181
+ // The order of the shares does not matter during decryption.
182
+ participant3Keys.privateKey,
182
183
  ),
183
184
  createDecryptionShare(
184
185
  aggregatedEncryptedVoteOption1,
185
- participant2Keys.privateKey,
186
+ participant1Keys.privateKey,
186
187
  ),
187
188
  createDecryptionShare(
188
189
  aggregatedEncryptedVoteOption1,
189
- participant3Keys.privateKey,
190
+ participant2Keys.privateKey,
190
191
  ),
191
192
  ];
192
193
  const decryptionSharesOption2 = [
193
194
  createDecryptionShare(
194
195
  aggregatedEncryptedVoteOption2,
195
- participant1Keys.privateKey,
196
+ participant2Keys.privateKey,
196
197
  ),
197
198
  createDecryptionShare(
198
199
  aggregatedEncryptedVoteOption2,
199
- participant2Keys.privateKey,
200
+ participant1Keys.privateKey,
200
201
  ),
201
202
  createDecryptionShare(
202
203
  aggregatedEncryptedVoteOption2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "threshold-elgamal",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "Threshold ElGamal in TypeScript",
5
5
  "author": "Piotr Piech <piotr@piech.dev>",
6
6
  "license": "MIT",