Skip to content

tests: Add Wycheproof ECDSA vectors#1245

Merged
sipa merged 1 commit intobitcoin-core:masterfrom
RandomLattice:wycheproof
Apr 10, 2023
Merged

tests: Add Wycheproof ECDSA vectors#1245
sipa merged 1 commit intobitcoin-core:masterfrom
RandomLattice:wycheproof

Conversation

@RandomLattice
Copy link
Copy Markdown
Contributor

@RandomLattice RandomLattice commented Mar 22, 2023

This PR adds a test using the Wycheproof vectors as outlined in #1106. We add all 463 ECDSA test vectors. These vectors cover:

  • edge cases in arithmetic operations
  • signatures with special values for (r,s) that should be rejected
  • special cases of public keys

The vectors are pulled from the Wycheproof project using a python script to emit C code.

All the new ECDSA Wycheproof vectors pass.

Loading
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.

7 participants