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

Check that disperser uses correct blob length #1290

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Conversation

litt3
Copy link
Contributor

@litt3 litt3 commented Feb 19, 2025

Why are these changes needed?

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@litt3 litt3 marked this pull request as ready for review February 19, 2025 16:30
@litt3 litt3 requested a review from anupsv February 19, 2025 18:04

// We need to check that the disperser used the correct length. Even once checking the commitment from the
// disperser has been implemented, there is still an edge case where the disperser could truncate trailing 0s,
// yielding the wrong blob length, but not causing commitment verification to fail. It is important that the
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a change on the disperser side to make sure this case is handled ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so- this check is intended to protect against a disperser maliciously/incorrectly truncating 0s

@litt3 litt3 merged commit eed510d into master Feb 20, 2025
12 checks passed
@litt3 litt3 deleted the check-commitment-blob-len branch February 20, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check that disperser uses correct blob length
4 participants