Skip to content

test: freeze deposit-request golden vectors for client compatibility#443

Open
matthias-wright wants to merge 37 commits into
mainfrom
m/test-deposit-request
Open

test: freeze deposit-request golden vectors for client compatibility#443
matthias-wright wants to merge 37 commits into
mainfrom
m/test-deposit-request

Conversation

@matthias-wright

@matthias-wright matthias-wright commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Builds on #440 and #442.

The deposit request signature format changed in #282.

This PR freezes three signed deposit requests as types/fixtures/deposit_requests.json in the 288-byte EL wire format, plus tests that pin both directions.
The frozen deposit requests are used for testing the deposit request function in the client SDKs.

Changes:

  • committed_fixtures_match_generator: the file matches what the current signing/encoding code produces; any change to the wire format, signing message, or domain derivation fails here and forces a conscious regen
  • frozen_requests_parse_and_round_trip: try_from_eth_bytes parses the frozen bytes into exactly the recorded fields and re-encodes identically
  • frozen_requests_verify_and_process: the vectors pass signature verification and produce the expected validator accounts
  • mutated_frozen_requests_are_rejected: corrupted signatures/amounts are rejected with the right DepositRejectionReason; the index bytes are provably outside the signed message

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