Skip to content
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

Simplifications for ./crypto #4677

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

michaelsproul
Copy link
Member

Proposed Changes

  • Remove footgun Default implementations for BlobSidecar, KzgCommitment, KzgProof.
  • Simplify serde deserialization of commitment & proof.

@michaelsproul michaelsproul added ready-for-review The code is ready for review deneb labels Aug 30, 2023
@michaelsproul michaelsproul mentioned this pull request Aug 30, 2023
Copy link
Member

@pawanjay176 pawanjay176 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -154,7 +162,7 @@ impl<T: EthSpec> BlobSidecar<T> {
blob,
kzg_commitment: commitment,
kzg_proof: proof,
..Default::default()
..Self::empty()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool trick! didn't know we could use arbitrary functions to fill remaining fields.

@realbigsean realbigsean merged commit 1360653 into sigp:deneb-free-blobs Sep 5, 2023
26 checks passed
@realbigsean
Copy link
Member

Thanks Michael!

@michaelsproul michaelsproul deleted the deneb-crypto branch September 5, 2023 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deneb ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants