Skip to content

Commit 42143ba

Browse files
committed
readme
1 parent 42aa488 commit 42143ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ import { FFT, poly } from '@noble/curves/abstract/fft.js';
8080
- [secp256k1, p256, p384, p521, ed25519, ed448, brainpool](#secp256k1-p256-p384-p521-ed25519-ed448-brainpool)
8181
- [ristretto255, decaf448](#ristretto255-decaf448)
8282
- [Prehashed signing](#prehashed-signing)
83+
- [Recovering public keys from signatures](#recovering-public-keys-from-signatures)
8384
- [Hedged ECDSA with noise](#hedged-ecdsa-with-noise)
8485
- [Consensus-friendliness vs e-voting](#consensus-friendliness-vs-e-voting)
8586
- [ECDH: Diffie-Hellman shared secrets](#ecdh-diffie-hellman-shared-secrets)
@@ -170,7 +171,7 @@ make sure to disable prehashing.
170171
> Previously, in noble-curves v1, `prehash: false` was the default.
171172
> Some other libraries (like libsecp256k1) have no prehashing.
172173
173-
#### Recovering public keys from ECDSA signatures
174+
#### Recovering public keys from signatures
174175

175176
```js
176177
import { secp256k1 } from '@noble/curves/secp256k1.js';
@@ -187,6 +188,9 @@ const sigNoRec = secp256k1.sign(msg, secretKey, { format: 'compact' });
187188
const sigInstance = secp256k1.Signature.fromBytes(sigRec, 'recovered');
188189
```
189190

191+
> [!NOTE]
192+
> Only ECDSA supports public key recovery.
193+
190194
#### Hedged ECDSA with noise
191195

192196
```js

0 commit comments

Comments
 (0)