Skip to content

Conversation

@lukeiannucci
Copy link

@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:


SubmittedAt time.Time `rlp:"optional"`
}

type Header struct {
Copy link

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?

return err
}
case arbutil.EphemeralKey:
err := s.verifyBatchPosterSignature(data, userDataHashArr, l1Height)
Copy link

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

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?

@ImJeremyHe
Copy link
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.

4 participants