Skip to content

bip-340: set all_passed=False on key generation mismatch - #2002

Merged
jonatack merged 1 commit into
bitcoin:masterfrom
MozirDmitriy:fix/bip340-test-harness-keygen-failure-flag
Oct 16, 2025
Merged

bip-340: set all_passed=False on key generation mismatch#2002
jonatack merged 1 commit into
bitcoin:masterfrom
MozirDmitriy:fix/bip340-test-harness-keygen-failure-flag

Conversation

@MozirDmitriy

Copy link
Copy Markdown
Contributor

Fix test harness to correctly fail when public key generation does not match the expected vector. Previously, the “Failed key generation” branch only printed diagnostics without updating all_passed, leading to a false-positive overall test result. This is a bug because a keygen mismatch indicates an implementation error that must cause the test run to fail, consistent with how other failures in the harness set all_passed = False.

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK f98774a

Change looks obviously correct and only affects the last line printed in the test output in the case of a test failure.

@jonatack

Copy link
Copy Markdown
Member

cc @real-or-random for sign-off

@real-or-random real-or-random left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

utACK f98774a

@jonatack
jonatack merged commit 1d18627 into bitcoin:master Oct 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants