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 v2 disperser protos #816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

Updating blob header & cert schema

Checks

  • I've made sure the lint is passing in this PR.
  • 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 :(

@ian-shim ian-shim marked this pull request as ready for review October 17, 2024 05:07
uint32 reference_block_number = 5;
repeated string relays = 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to decide what form the relay identifier will take. If relays are registered on chain then we can use a short identifier, e.g. a uint32 or similar. Passing the relay URLs here will be convenient but could bloat the size of the certificate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

bytes blob_key = 2;
BlobCommitment blob_commitment = 3;
repeated uint32 quorum_numbers = 4;
bytes blob_key = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the blob key going to be equivalent to the blob hash? If "yes", perhaps if we should just call this field blob_hash.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

blob_key is used throughout the system as a hash(blob_header). What's the blob hash?

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, I think I was mistaken about the blob hash thing.

Copy link
Contributor

@cody-littley cody-littley left a comment

Choose a reason for hiding this comment

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

I'm ok with this merging once we sort out whether or not repeated string relays = 4; should actually be something like repeated uint32.

uint32 version = 1;
repeated uint32 quorum_numbers = 2;
common.BlobCommitment commitment = 3;
bytes payment_header_hash = 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we just include the payment header now so as to minimize api changes in the future?


// BlobCertificate is what gets attested by the network
message BlobCertificate {
bytes blob_key = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the blob key needed when the blob header is here?

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.

3 participants