threshold-elgamal 0.1.16 → 0.1.18
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 +1 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ const decryptedMessage = decrypt(encryptedMessage, prime, privateKey);
|
|
|
90
90
|
console.log(decryptedMessage); // 42
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
### Single secret
|
|
93
|
+
### Single secret shared with 3 participants
|
|
94
94
|
|
|
95
95
|
Threshold scheme for generating a common public key, sharing a secret to 3 participants using that key and requiring all three participants to decrypt it.
|
|
96
96
|
|
|
@@ -103,8 +103,6 @@ import {
|
|
|
103
103
|
createDecryptionShare,
|
|
104
104
|
combineDecryptionShares,
|
|
105
105
|
thresholdDecrypt,
|
|
106
|
-
multiplyEncryptedValues,
|
|
107
|
-
generateParameters,
|
|
108
106
|
} from "threshold-elgamal";
|
|
109
107
|
|
|
110
108
|
const primeBits = 2048; // Bit length of the prime modulus
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { generateParameters, encrypt, decrypt } from './elgamal';
|
|
2
2
|
export { generateSingleKeyShare, generateKeyShares, combinePublicKeys, createDecryptionShare, combineDecryptionShares, thresholdDecrypt, } from './thresholdElgamal';
|
|
3
|
-
export { getRandomBigIntegerInRange, multiplyEncryptedValues } from './utils';
|
|
3
|
+
export { getRandomBigIntegerInRange, multiplyEncryptedValues, getGroup, } from './utils';
|
|
4
4
|
export type { EncryptedMessage, Parameters, KeyPair, PartyKeyPair, } from './types';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { generateParameters, encrypt, decrypt } from './elgamal';
|
|
2
2
|
export { generateSingleKeyShare, generateKeyShares, combinePublicKeys, createDecryptionShare, combineDecryptionShares, thresholdDecrypt, } from './thresholdElgamal';
|
|
3
|
-
export { getRandomBigIntegerInRange, multiplyEncryptedValues } from './utils';
|
|
3
|
+
export { getRandomBigIntegerInRange, multiplyEncryptedValues, getGroup, } from './utils';
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "threshold-elgamal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"author": "Piotr Piech <piotr@piech.dev>",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"description": "Threshold ElGamal
|
|
6
|
+
"description": "Threshold ElGamal in TypeScript",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"repository": {
|