Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

fix: return false rather than panicking on invalid ECDSA signatures #557

Closed
wants to merge 2 commits into from

Conversation

TomAFrench
Copy link
Member

Description

Problem*

Resolves noir-lang/noir#2755

Summary*

This PR updates the ECDSA verification functions to return false rather than panicking on some failure modes. In particular, we now allow for zero values for (r, s) and public keys which don't lie on the correct curve.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@TomAFrench TomAFrench changed the title fix: return false rather than panicking on invalid ECDSA signatures fix: return false rather than panicking on invalid ECDSA signatures Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ECDSA signature verification panics if provided invalid signature/public key
1 participant