Skip to content

Make ProjectiveNielsPoint::identity() an associated constant #1330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daxpedda
Copy link
Contributor

This PR makes ProjectiveNielsPoint::identity() and associated constant IDENTITY.

This actually had quite the effect on Edwards scalar multiplication, it called the twisted-curve to Niel's form conversion 113 times during the operation which isn't being optimized away in release mode (with fat LTO, codegen-units = 1 and such). So during each iteration this added 3 multiplications to the already 20 present, a flat 15% increase. Which approximately matches the benchmarks I've run.

Also affects Decaf scalar multiplication with #1303.

@daxpedda daxpedda changed the title Make ProjectiveNielsPoint::identity() and associated constant Make ProjectiveNielsPoint::identity() an associated constant Aug 1, 2025
@daxpedda daxpedda mentioned this pull request Aug 3, 2025
46 tasks
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