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

feat: implement NIST P-256 and P-384 curves #697

Merged
merged 16 commits into from
May 25, 2023
Merged

feat: implement NIST P-256 and P-384 curves #697

merged 16 commits into from
May 25, 2023

Conversation

ivokub
Copy link
Collaborator

@ivokub ivokub commented May 18, 2023

These curves are fairly popular in practical applications (certificates, TLS, ID cards, signatures) and imo its better to have included so that users would implement correctly.

As these curves are supported by Go standard library, then do not need to add anything in gnark-crypto and can perform precomputation+tests using standard library only. So no more imports.

Is based on top of #696, so it is better to have that reviewed/merged first.

Thanks to @SherLzp for initial contribution.

@ivokub ivokub added new feature P3: Low Issue priority: low labels May 18, 2023
@ivokub ivokub added this to the v0.9.0 milestone May 18, 2023
@ivokub ivokub requested a review from yelhousni May 18, 2023 22:23
@ivokub ivokub self-assigned this May 18, 2023
@ivokub
Copy link
Collaborator Author

ivokub commented May 19, 2023

Oh, I didn't realise this is already done in #610. Will see if I can attribute the contributor by merging the implementations.

commit cbf25b5
Author: SherLzp <lzp.sher@gmail.com>
Date:   Thu Mar 30 13:57:51 2023 +0800

    secp256r1: ecdsa
Copy link
Contributor

@yelhousni yelhousni left a comment

Choose a reason for hiding this comment

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

Definitely a great contribution to gnark std for users! LGTM 👍

std/math/emulated/params.go Outdated Show resolved Hide resolved
@ivokub ivokub merged commit c617c9f into develop May 25, 2023
@ivokub ivokub deleted the feat/secp-r branch May 25, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature P3: Low Issue priority: low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants