-
Notifications
You must be signed in to change notification settings - Fork 0
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
transition vault.proto to rev3? #3
Comments
While we're talking about In short, it's adopting the TID concept as a way to name/identify Feed entries. Aren't they just hash IDs? Well yes, but they also have a time-based prefix, allowing the handlers of these opaque objects to handle, sort, and prioritize their storage and access just by having the TID in hand. As you can imagine, a vault (and pnode) can manage large collections of (opaque) TID blobs WAY more effectively and intelligently. A TID for each object also makes a common standard for entry naming, allowing vaults to address a specific stream starting point The extended version of what's at hand here is going route of having a header object (where a feed msg blob is accompanied by a simple pb header). This would give us a place to put the TID and other helpful data. For example, we could opt to also have a |
Sounds good to me.
I'm game for this as well, including the extension into a header. With the caveat that you should not assume you'll have a useful time prefix between vaults. While we're at it, another vault proto change I'd recommend is not serializing the
We could use |
Yeah, this is basically what I mean by creating a
I am not a big fan of |
Works for me. |
With the anticipated roadmap of
plan-vault-libp2p
consuming repo.proto in the long run, I propose to do I rev on vault.proto that narrows the gap a little more. Namely: instead ofFeedMsg
used for messages both ways, it becomes more specialized. Modeled after repo.proto:FeedReq
is what a client sends the vault, andFeedMsg
becomes what the vault sends in response.As you see in repo.proto, this lets each become a lil more specialized making things more self-documenting.
In the end, it's not much of change, but I wanted to raise it since @tgross will be focusing on the
libp2p
of the vault.The text was updated successfully, but these errors were encountered: