-
Notifications
You must be signed in to change notification settings - Fork 169
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
base: master
Are you sure you want to change the base?
Conversation
8582bdd
to
03cdacb
Compare
api/proto/common/common.proto
Outdated
uint32 reference_block_number = 5; | ||
repeated string relays = 4; |
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.
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.
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.
updated
api/proto/common/common.proto
Outdated
bytes blob_key = 2; | ||
BlobCommitment blob_commitment = 3; | ||
repeated uint32 quorum_numbers = 4; | ||
bytes blob_key = 1; |
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.
Is the blob key going to be equivalent to the blob hash? If "yes", perhaps if we should just call this field blob_hash
.
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.
blob_key
is used throughout the system as a hash(blob_header)
. What's the blob hash?
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.
Makes sense, I think I was mistaken about the blob hash thing.
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.
I'm ok with this merging once we sort out whether or not repeated string relays = 4;
should actually be something like repeated uint32
.
03cdacb
to
7a5abf6
Compare
uint32 version = 1; | ||
repeated uint32 quorum_numbers = 2; | ||
common.BlobCommitment commitment = 3; | ||
bytes payment_header_hash = 4; |
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.
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; |
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.
Is the blob key needed when the blob header is here?
Why are these changes needed?
Updating blob header & cert schema
Checks