-
Notifications
You must be signed in to change notification settings - Fork 87
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
Storing large SSZ objects in Portal #301
Comments
Ok, I've got a thread that is maybe at least worth pulling on. Suppose we have this object: container BlockType1:
...
container BlockType2:
....
container History:
fork_1_blocks: List[BlockType1, ...]
fork_2_blocks: List[BlockType2, ...] Lets suppose that the serialized version of this object takes 2GB for the data in the 1st list, and 6GB for the data in the second list. In the original scheme, we SSZ encode it and then re-hash it using a Now, suppose that we use the normal SSZ hash, but along with that hash, we also include some metadata about the sizes. Specifically, a sequence of paths into the merkle trie of the SSZ hash and the corresponding size of the variable sized values between each path.
I think that with this simple addition of meta-data that tells us the amount of serialized data that should be expected within a given range of the merkle trie, it satisfies the necessary network conditions that we previously needed the Some caveats to this are that the underlying data may not actually be evenly distributed, such as some blocks having more transactions than others... which would result in some un-even-ness but my intuition says not enough to cause a problem. And since we're talking about about objects that we would be committing to ahead of time, we could actually do the work to determine what level of granularity we would need to provide for the merkle paths to achieve the necessary data distribution. |
Cross posting this here so it's easy to find.
https://ethresear.ch/t/distributed-storage-and-cryptographically-secured-retrieval-of-ssz-objects-for-portal-network/19575
This likely has applications in
The text was updated successfully, but these errors were encountered: