Skip to content

test: Add more polka/commit certificate verification tests#1490

Merged
romac merged 1 commit intocirclefin:mainfrom
romac:commit-verify-tests
Mar 10, 2026
Merged

test: Add more polka/commit certificate verification tests#1490
romac merged 1 commit intocirclefin:mainfrom
romac:commit-verify-tests

Conversation

@romac
Copy link
Copy Markdown
Contributor

@romac romac commented Feb 19, 2026

Add 32 new tests covering address spoofing, signature replay (across heights, rounds, and values), cross-type replay, validator set mismatch, and quorum boundary conditions for commit, polka, and round certificates.

@romac romac requested a review from cason February 19, 2026 14:26
Add 32 new tests covering address spoofing, signature replay (across
heights, rounds, and values), cross-type replay, validator set mismatch,
and quorum boundary conditions for commit, polka, and round certificates.

These tests prove that Malachite is resilient to the CometBFT vulnerability
(fixed in cbccfe3) where lookUpByIndex allowed signature spoofing, because
Malachite always looks up validators by address and verifies against the
looked-up validator's public key.
@romac romac force-pushed the commit-verify-tests branch from 005657f to c798f33 Compare February 23, 2026 12:23
@romac romac changed the title test: Add security-focused certificate signature verification tests test: Add more polka/commit certificate verification tests Feb 26, 2026
@romac romac marked this pull request as ready for review February 27, 2026 22:46
@romac romac requested a review from ancazamfir as a code owner February 27, 2026 22:46
@romac romac added this pull request to the merge queue Mar 10, 2026
Merged via the queue into circlefin:main with commit 2a193dc Mar 10, 2026
16 checks passed
@romac romac deleted the commit-verify-tests branch March 10, 2026 13:52
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.

2 participants