-
Notifications
You must be signed in to change notification settings - Fork 11
feat(types): add Fulu cell dissemination SSZ types #284
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: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,6 +102,26 @@ pub const MatrixEntry = ssz.FixedContainerType(struct { | |
| row_index: RowIndex, | ||
| }); | ||
|
|
||
| // Cell Dissemination types (consensus-specs #4558) | ||
| pub const PartialDataColumnSidecar = ssz.VariableContainerType(struct { | ||
| cells_present_bitmap: ssz.BitListType(preset.MAX_BLOB_COMMITMENTS_PER_BLOCK), | ||
| partial_column: ssz.FixedListType(Cell, preset.MAX_BLOB_COMMITMENTS_PER_BLOCK), | ||
| kzg_proofs: ssz.FixedListType(p.KZGProof, preset.MAX_BLOB_COMMITMENTS_PER_BLOCK), | ||
| // Optional header, only sent on eager pushes | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per the repository style guide (line 304), comments on their own line should be complete sentences with proper capitalization and punctuation. Please update this comment to follow that rule. References
|
||
| header: ssz.VariableListType(PartialDataColumnHeader, 1), | ||
| }); | ||
|
|
||
| pub const PartialDataColumnPartsMetadata = ssz.VariableContainerType(struct { | ||
| available: ssz.BitListType(preset.MAX_BLOB_COMMITMENTS_PER_BLOCK), | ||
| requests: ssz.BitListType(preset.MAX_BLOB_COMMITMENTS_PER_BLOCK), | ||
| }); | ||
|
|
||
| pub const PartialDataColumnHeader = ssz.VariableContainerType(struct { | ||
| kzg_commitments: ssz.FixedListType(p.KZGCommitment, preset.MAX_BLOB_COMMITMENTS_PER_BLOCK), | ||
| signed_block_header: SignedBeaconBlockHeader, | ||
| kzg_commitments_inclusion_proof: ssz.FixedVectorType(p.Bytes32, preset.KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line exceeds the 100-column limit specified in the repository style guide (line 400). Please reformat it to adhere to the style guide. References
|
||
| }); | ||
|
|
||
| // Light client types | ||
| pub const LightClientHeader = electra.LightClientHeader; | ||
| pub const LightClientBootstrap = electra.LightClientBootstrap; | ||
|
|
||
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.
Per the repository style guide (line 304), comments on their own line should be complete sentences with proper capitalization and punctuation. This comment appears to be a section header; please rephrase it as a complete sentence.
References