Skip to content

refactor(testing): collapse the two placeholder-proof branches#1160

Merged
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:refactor-collapse-placeholder-proof
Jun 18, 2026
Merged

refactor(testing): collapse the two placeholder-proof branches#1160
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:refactor-collapse-placeholder-proof

Conversation

@tcoratger

Copy link
Copy Markdown
Collaborator

Summary

In GossipAttestationSpec.build_signed, the empty-bit-override branch and the invalid-signature branch built the same zeroed-32-byte placeholder proof and differed only in the participant bitfield. Merged them into one branch, selecting participants with an explicit is not None check (not or, to avoid the falsy-AggregationBits trap).

The Path 0–3 comment block is preserved. Pure structural refactor — the emitted (participants, proof) pair is identical for each original input. Found in the packages/testing audit (TYPES-03).

Lint: ruff check + ruff format clean.

The empty-bit-override and invalid-signature cases built the same zeroed placeholder proof and
differed only in the participant bitfield. Merge them, selecting participants with an explicit
is-not-None check. Emitted vectors are byte-identical.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tcoratger tcoratger merged commit 976743f into leanEthereum:main Jun 18, 2026
14 checks passed
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.

1 participant