-
Notifications
You must be signed in to change notification settings - Fork 387
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
EPIC: Universal share prefix #659
Comments
Proposal to rename |
I like that idea. our whole naming scheme has kinda been thrown off since we changed |
I've been confused on this because I've been using If we've been using Update: created celestiaorg/celestia-core#848 |
## Description ADR version of #659 [rendered](https://github.com/rootulp/celestia-app/blob/rp/adr-universal-share-encoding/docs/architecture/adr-007-universal-share-prefix.md) Co-authored-by: Ismail Khoffi <[email protected]>
## Description ADR version of celestiaorg#659 [rendered](https://github.com/rootulp/celestia-app/blob/rp/adr-universal-share-encoding/docs/architecture/adr-007-universal-share-prefix.md) Co-authored-by: Ismail Khoffi <[email protected]>
We want to switch to more universal share encoding format, similar to what is discussed in celestiaorg/celestia-core#839. The main benefit of this approach being that parsing shares should be more similar in that we add a varint length delimiter to the total length of contiguous shares.
This means that the current format for contiguous shares (reserved namespace shares) will look like
starting shares (last info bit == 1)
nid (8 bytes) | info byte | message length (varint) | reserved byte | share data
non starting shares (last info bit == 0)
nid (8 bytes) | info byte | reserved byte | share data
note that depending on what we decide for celestiaorg/celestia-core#842, this issue might be moved to core.
The text was updated successfully, but these errors were encountered: