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

Update get_data_column_sidecars to take cells/proofs #3836

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

jtraglia
Copy link
Member

@jtraglia jtraglia commented Jul 8, 2024

We received feedback from clients that they were unable to re-create data column sidecars after performing recovery because get_data_column_sidecars took blobs, but recover_cells_and_kzg_proofs provided cells/proofs and there was no public method to convert the cells back to a blob. I think it makes sense to change this function to take cells/proofs instead of blobs.

@jtraglia jtraglia added the EIP-7594 PeerDAS label Jul 8, 2024
@jtraglia jtraglia requested a review from asn-d6 July 8, 2024 19:10
Copy link
Member

@ppopth ppopth left a comment

Choose a reason for hiding this comment

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

This makes sense to me.

@agnxsh
Copy link
Contributor

agnxsh commented Jul 9, 2024

It would be nice to maybe overload this function from an implementation POV. Because this function is still used with blobs getting passed, in the proposer impls. Exactly where proposer extracts blob sidecars from blob bundle and then gets data column sidecars from the blobs, at slot start.

ref - https://github.com/prysmaticlabs/prysm/blob/peerDAS/beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go#L379-L411

cc @nisdas @nalepae correct me if i am wrong

@ppopth
Copy link
Member

ppopth commented Jul 9, 2024

Because this function is still used with blobs getting passed, in the proposer impls. Exactly where proposer extracts blob sidecars from blob bundle and then gets data column sidecars from the blobs, at slot start.

You can call compute_cells_and_kzg_proofs before calling get_data_column_sidecars. It's quite simple. Just like you call recover_cells_and_kzg_proofs in reconstruction.

@agnxsh
Copy link
Contributor

agnxsh commented Jul 9, 2024

Because this function is still used with blobs getting passed, in the proposer impls. Exactly where proposer extracts blob sidecars from blob bundle and then gets data column sidecars from the blobs, at slot start.

You can call compute_cells_and_kzg_proofs before calling get_data_column_sidecars. It's quite simple. Just like you call recover_cells_and_kzg_proofs in reconstruction.

OK, thanks

specs/_features/eip7594/das-core.md Show resolved Hide resolved
specs/_features/eip7594/das-core.md Outdated Show resolved Hide resolved
Copy link
Contributor

@asn-d6 asn-d6 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@asn-d6 asn-d6 merged commit bb8f3ca into ethereum:dev Jul 16, 2024
26 checks passed
@jtraglia jtraglia deleted the columns-cells-and-proofs branch July 16, 2024 15:29
Copy link

@Aga92-92 Aga92-92 left a comment

Choose a reason for hiding this comment

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

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EIP-7594 PeerDAS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants