File created: hellnet/tech/extent-based-filelinks [Diff]
-- /dev/null++ b/hellnet/tech/extent-based-filelinks
@@ -1 +1,6 @@
h1. Extent-based filelinks
Filelink is a list of hashes of chunks of file. As Hellnet has limited chunk size and filelinks have to be files too, and we can't use filelinks on filelinks, Hellnet has extent-based filelinks.
If chunk size is 64, we can fit 1024 hashes in it. If file needs more than 1023 hashes to describe it, we make another filelink chunk, fill it with the rest and append hash of that chunk to first one. Can be recursively repeated.