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

Serving TrustChain as a Torrent #4145

Closed
ichorid opened this issue Jan 13, 2019 · 2 comments
Closed

Serving TrustChain as a Torrent #4145

ichorid opened this issue Jan 13, 2019 · 2 comments

Comments

@ichorid
Copy link
Contributor

ichorid commented Jan 13, 2019

TrustChain blocks can have arbitrary size and contents. Currently, we store the user's TrustChain in the SQLite database and spread it out using IPv8 queries. But TrustChain is, by definition, an append-only data structure. This means we can write it into a file on disk as it grows, and periodically publish it in a torrent, as we do with GigaChannels.

In fact, GigaChannel already feature simple and efficient code to do just that: periodically dump binary data into file chunks, dynamically compressing the dumped data with LZ4 (and serving queries through IPv8).
GigaChannel allows us to hone our methods of managing collective-access to append-only data created by users. If it proves to be successful, eventually GigaChannel can become a primary distribution method for TrustChain.

As a first step towards this goal, we can add sidechain support to TrustChain, so we can experiment with various forms of sidechain offloading.

@devos50
Copy link
Contributor

devos50 commented Jan 13, 2019

Partial overlap with #3484

@ichorid
Copy link
Contributor Author

ichorid commented Jan 13, 2019

Yeah, a duplicate of #3484. Forgot about that one.

@ichorid ichorid closed this as completed Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants