test: add attestation proof order rejection fixture#761
Open
latifkasuli wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
CI note: the only failing check is It failed before tests ran while building All other checks are green, including fixture fill, interop, coverage, lint/format, and the Python 3.12/3.13/3.14 test jobs on the other runners. I do not have repository permissions to rerun the failed job, so this needs a maintainer rerun. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
verify_signaturestamper case that swaps the first two body attestations and re-signs only the proposer.Why
This pins the block-level proof ordering invariant without adding runtime/debug machinery: the proposer signature remains valid for the received block, while the attestation proof components are deliberately paired with the wrong body messages.
Validation
uv run --group lint ruff check --no-fix --show-fixesuv run --group lint ruff format --checkuv run --group lint ty checkcodespellviacodespell_libentrypoint, because this checkout's console-script shebang is staleuv run --group docs python -m mdformat --check docs/uv lock --checkuv run --group test python -m pytest tests -n auto --maxprocesses=10 --durations=10 --dist=workstealuv run --group test fill --fork=Lstar --clean --output /tmp/leanspec-full-consensus-fill tests/consensus -q