-
Notifications
You must be signed in to change notification settings - Fork 300
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
Create MiscHelpersEip4844 #6474
Conversation
public class KZGUtilEip4844 { | ||
|
||
public static void verifyAggregateKZGProof( | ||
final List<Blob> blobs, |
Check notice
Code scanning / CodeQL
Useless parameter
|
||
public static void verifyAggregateKZGProof( | ||
final List<Blob> blobs, | ||
final List<KZGCommitment> expectedKZGCommitments, |
Check notice
Code scanning / CodeQL
Useless parameter
public static void verifyAggregateKZGProof( | ||
final List<Blob> blobs, | ||
final List<KZGCommitment> expectedKZGCommitments, | ||
final KZGProof kzgProof) { |
Check notice
Code scanning / CodeQL
Useless parameter
As per out-of-band discussion, we agreed to move back from SSZ to the "magic" when decoding transaction to get the versioned hash. We gain in runtime performance and reduced maintenance (we don't need to deal with potential changes in next fork. Eventual changes in new forks will be implemented with a new miscHelper). |
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.
looks good. Just a couple of comments
ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/capella/SpecLogicCapella.java
Outdated
Show resolved
Hide resolved
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.
LGTM
PR Description
UPDATE: looked what others do while looking for fixtures, Lighthouse keeps magic, Prysm uses fork
go-ethereum
type where it's blob tx is implemented as a type, got some data to check in my implementation from their testVersionedHash
orBytes32
is ok?UPDATE: added
VersionedHash
UPDATE: tests added
Fixed Issue(s)
Fixes #6391
Documentation
doc-change-required
label to this PR if updates are required.Changelog