-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cell proof #15064
base: peerDAS
Are you sure you want to change the base?
Cell proof #15064
Conversation
@@ -689,3 +689,37 @@ func (sigBlock *SignedBeaconBlockFulu) Copy() *SignedBeaconBlockFulu { | |||
Signature: bytesutil.SafeCopyBytes(sigBlock.Signature), | |||
} | |||
} | |||
|
|||
func (block *BeaconBlockFulu) Copy() *BeaconBlockFulu { |
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't we re-use BeaconBlockElectra
?
|
||
// 96 byte BLS signature from the validator that produced this block. | ||
bytes signature = 2 [ (ethereum.eth.ext.ssz_size) = "96" ]; | ||
} | ||
|
||
message BeaconBlockContentsFulu { | ||
BeaconBlockElectra block = 1; | ||
BeaconBlockFulu block = 1; |
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't we re-use BeaconBlockElectra
?
]; | ||
repeated bytes blobs = 3 [ | ||
(ethereum.eth.ext.ssz_size) = "?,blob.size", | ||
(ethereum.eth.ext.ssz_max) = "4096" | ||
]; | ||
} | ||
|
||
message BeaconBlockFulu { |
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't we re-use BeaconBlockElectra
?
BeaconBlockBodyFulu body = 5; | ||
} | ||
|
||
message BeaconBlockBodyFulu { |
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't we re-use BeaconBlockBodyElectra
?
} | ||
|
||
// Get the block body. | ||
start := time.Now() |
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.
To be strictly fair this should be the first line of the function.
startTime := time.Now() | ||
blobsCount := len(blobs) | ||
if blobsCount == 0 { | ||
func DataColumnSidecars(signedBlock interfaces.ReadOnlySignedBeaconBlock, cellsAndProofs []kzg.CellsAndProofs) ([]*ethpb.DataColumnSidecar, error) { |
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.
The godoc is not correct any more.
"github.com/prysmaticlabs/prysm/v5/runtime/version" | ||
) | ||
|
||
// Helper function to unblind data column sidecars from a block and a blobs bundle v2. |
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.
Godoc of public function should start with the name of the public function itself.
return DataColumnSidecars(block, cellsAndProofs) | ||
} | ||
|
||
func ConstructCellsAndProofs(blobs [][]byte, cellProofs [][]byte) ([]kzg.CellsAndProofs, error) { |
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.
Does this function need to be public?
What type of PR is this?
Feature
What does this PR do? Why is it needed?
New cell proof computation related changes as defined in:
Which issues(s) does this PR fix?
#14129
Fixes #
Other notes for review
Acknowledgements