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

check PK is valid #18

Open
DreamWuGit opened this issue Jul 8, 2024 · 0 comments
Open

check PK is valid #18

DreamWuGit opened this issue Jul 8, 2024 · 0 comments

Comments

@DreamWuGit
Copy link

before ecdsa_verify_no_pubkey_check, need to check PK is valid:
ecc_chip.is_on_curve_or_infinity
gate.assert_is_const(ctx, &pk_is_valid, F::one())

if not, make constraint fail in early time.

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

No branches or pull requests

1 participant