-
Notifications
You must be signed in to change notification settings - Fork 22
Add Header to Hotshot Payload #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: integration
Are you sure you want to change the base?
Conversation
arbutil/espresso_utils.go
Outdated
| SubmittedAt time.Time `rlp:"optional"` | ||
| } | ||
|
|
||
| type Header struct { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
|
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 |
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: