ecdsa-quirks 0.1.2 → 0.1.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/README.md +5 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,8 +16,11 @@ To generate the signatures, run:
|
|
|
16
16
|
ecdsa-quirks --m1 "<some message>" --m2 "<some other message>" [--eip191]
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
The tool will log the private key and generated signatures via that private key.
|
|
19
|
+
The tool will log the private key and generated signatures via that private key that are the same for the specified messages.
|
|
20
|
+
|
|
21
|
+
> [!CAUTION]
|
|
22
|
+
> If both messages (or their hashes) with the signature are disclosed, anyone can reconstruct the private key. Be extremely cautious.
|
|
20
23
|
|
|
21
24
|
## Disclaimer
|
|
22
25
|
|
|
23
|
-
The
|
|
26
|
+
The implementation is based on [this research paper](https://www.di.ens.fr/david.pointcheval/Documents/Papers/2002_cryptoA.pdf). Please check it out to understand the math behind.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecdsa-quirks",
|
|
3
3
|
"description": "Generate the same ECDSA signature for two different messages",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lint": "prettier --check . && node --import tsx/esm ./node_modules/eslint/bin/eslint.js .",
|
|
40
40
|
"test": "node --import ./tests/loader-bootstrap.mjs --no-deprecation ./node_modules/mocha/bin/mocha.js \"tests/**/*.test.ts\" -t 120000",
|
|
41
41
|
"lint-fix": "prettier --write . && node --import tsx/esm ./node_modules/eslint/bin/eslint.js . --fix",
|
|
42
|
-
"publish": "npm run build && npm publish --access public"
|
|
42
|
+
"publish-to-npm": "npm run build && npm publish --access public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@noble/curves": "2.0.1",
|