Skip to content

Schnorr Signature Verification Speed Up - #37

Merged
Mychecksdead merged 3 commits into
inlining-optzfrom
schnorr-optz
Jun 30, 2026
Merged

Schnorr Signature Verification Speed Up#37
Mychecksdead merged 3 commits into
inlining-optzfrom
schnorr-optz

Conversation

@Mychecksdead

Copy link
Copy Markdown
Contributor

Signature verification went down from 290 microseconds to 130~ (combining with #36). (ECgFp5Point's was using lot of divisions, and there weren't any other way to calculate it other than Fermat, which was taking lot of field operations.)

After #36, it was 235 microseconds.

  • Main optimization is passing to AffinePoints for Verification (this brought it down to 175).
  • Precomputing the generator's affine windows also helped another 10-15 microseconds.
  • Delaying carries did the last 30 microseconds.

There is probably a bit more room.

@lighter-zz lighter-zz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mychecksdead
Mychecksdead marked this pull request as ready for review June 30, 2026 13:40
@Mychecksdead
Mychecksdead merged commit e630450 into inlining-optz Jun 30, 2026
5 checks passed
@Mychecksdead
Mychecksdead deleted the schnorr-optz branch June 30, 2026 13:41
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.

2 participants