Skip to content

Add Header to Hotshot Payload#751

Open
lukeiannucci wants to merge 10 commits into
integrationfrom
li/hotshot-header
Open

Add Header to Hotshot Payload#751
lukeiannucci wants to merge 10 commits into
integrationfrom
li/hotshot-header

Conversation

@lukeiannucci
Copy link
Copy Markdown

@lukeiannucci lukeiannucci commented Sep 3, 2025

Closes #<ISSUE_NUMBER>

This PR:

See design doc:
https://www.notion.so/espressosys/Espresso-Header-in-Nitro-Payloads-2642431b68e9807fa12afa5bc8fa4d35

This PR does not:

Key places to review:


Comment thread arbutil/espresso_utils.go Outdated
Comment thread arbutil/espresso_utils.go Outdated
SubmittedAt time.Time `rlp:"optional"`
}

type Header struct {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you also add comments on what each of this fields signifies?

Comment thread espressostreamer/espresso_streamer.go Outdated
return err
}
case arbutil.EphemeralKey:
err := s.verifyBatchPosterSignature(data, userDataHashArr, l1Height)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we create functions for each case instead of all this in one verify function?

for _, tc := range invalidPayloads {
t.Run(tc.description, func(t *testing.T) {
_, _, _, _, err := ParseHotShotPayload(tc.payload)
_, _, _, _, err := ParseHotShotPayload(tc.payload, nil)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you add a test to show that it will work with new transaction format as well as legacy?

Comment thread arbutil/espresso_utils.go Outdated
Comment thread espressostreamer/espresso_streamer.go Outdated
@ImJeremyHe
Copy link
Copy Markdown
Member

Just putting my thought for more discussion:

Is it appropriate to use another hotshot namespace for timeboost transactions? In this way we don't need headers

@lukeiannucci lukeiannucci marked this pull request as ready for review September 8, 2025 22:38
ImJeremyHe pushed a commit that referenced this pull request Dec 8, 2025
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.

3 participants