Skip to content

perf: invert points in edwards.sign() at once#224

Draft
ChALkeR wants to merge 1 commit intopaulmillr:mainfrom
ChALkeR:chalker/ed/0
Draft

perf: invert points in edwards.sign() at once#224
ChALkeR wants to merge 1 commit intopaulmillr:mainfrom
ChALkeR:chalker/ed/0

Conversation

@ChALkeR
Copy link
Contributor

@ChALkeR ChALkeR commented Nov 28, 2025

PoC, ignore types

~12% speedup in ed25519.sign() on Node.js without API changes in that method

Does this pose a timing risk?

If this works and is safe, an actual impl could be not specific to 2 points and just e.g. take an array of scalars as input (and perhaps even return toBytes() already)

@ChALkeR ChALkeR changed the title perf: invert points in ed.sign() at once perf: invert points in edwards.sign() at once Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant