Skip to content

Commit b66bde8

Browse files
committed
readme
1 parent f7ff79b commit b66bde8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,21 +238,20 @@ const isValid = ed25519.verify(sig, msg, pub);
238238
const isValidRfc = ed25519.verify(sig, msg, pub, { zip215: false });
239239
```
240240

241+
> [!NOTE]
242+
> Most other libraries don't have SUF-CMA & SBS - less optimal choice for their security.
243+
241244
In ed25519, there is an ability to choose between consensus-friendliness vs e-voting mode.
242245

243246
* `zip215: true` (default) uses the more permissive, [consensus-friendly](https://hdevalence.ca/blog/2020-10-04-its-25519am) verification rules defined in [ZIP215](https://zips.z.cash/zip-0215).
244247
* `zip215: false` enforces strict [RFC 8032](https://www.rfc-editor.org/rfc/rfc8032) / [FIPS 186-5](https://csrc.nist.gov/publications/detail/fips/186/5/final) verification and adds SBS-based non-repudiation, which is useful for:
245-
246-
* **Contract signing:** prevents a signer from later claiming they signed a different document
247-
* **E-voting:** stops voters from choosing keys that let them repudiate their vote
248-
* **Blockchains:** avoids signatures valid for multiple transactions (e.g., amount X also validating amount Y)
248+
* **Contract signing:** prevents a signer from later claiming they signed a different document
249+
* **E-voting:** stops voters from choosing keys that let them repudiate their vote
250+
* **Blockchains:** avoids signatures valid for multiple transactions (e.g., amount X also validating amount Y)
249251

250252
Both modes have SUF-CMA (strong unforgeability under chosen message attacks).
251253
See [Taming the many EdDSAs](https://eprint.iacr.org/2020/1244) for more info.
252254

253-
> [!NOTE]
254-
> Most other libraries don't have SUF-CMA & SBS.
255-
256255
### ECDH: Diffie-Hellman shared secrets
257256

258257
```js

0 commit comments

Comments
 (0)