Skip to content
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

P256VERIFY precompile #407

Merged
merged 10 commits into from
Oct 14, 2024
Merged

P256VERIFY precompile #407

merged 10 commits into from
Oct 14, 2024

Conversation

hecmas
Copy link
Contributor

@hecmas hecmas commented Oct 3, 2024

This PR adds support for the P256VERIFY precompile as specified in RIP-7212.

It does so by implementing the following:

  • Arithmetic over the base field of the Secp256r1 curve.
  • Arithmetic over the scalar field of the same curve.
  • Double scalar multiplication: $[k_1] \cdot P_1 + [k_2] \cdot P_2$ over the curve.
  • Signature verification algorithm of ECDSA.

@cla-bot cla-bot bot added the cla-signed label Oct 3, 2024
@hecmas hecmas changed the base branch from develop-durian to main October 3, 2024 18:47
@hecmas hecmas changed the base branch from main to develop-durian October 3, 2024 18:47
@hecmas hecmas marked this pull request as ready for review October 8, 2024 10:49
@hecmas hecmas changed the base branch from develop-durian to main October 10, 2024 09:17
@hecmas hecmas changed the base branch from main to develop-durian October 10, 2024 09:17
@hecmas hecmas changed the base branch from develop-durian to feature/preprocess-tx-validity-new October 10, 2024 09:19
@hecmas hecmas changed the base branch from feature/preprocess-tx-validity-new to develop-durian October 10, 2024 09:19
@hecmas hecmas closed this Oct 10, 2024
@hecmas hecmas reopened this Oct 10, 2024
Copy link

sonarcloud bot commented Oct 11, 2024

Copy link
Contributor

@laisolizq laisolizq left a comment

Choose a reason for hiding this comment

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

🔝

@laisolizq laisolizq merged commit d969c93 into develop-durian Oct 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants