And the merkle root is of a tree of equally-size blobs?
I ask because that might make it easy to skip to the relevant part of the video. Do we know the depth of the tree?
Although, I guess you have this size (and runtime?) metadata somewhere in the nodes of the tree?
Login to reply
Replies (2)
Usually equally sized leaf nodes, but that's not enforced. Actually I made a video-chunker which makes the first chunk 256kb so it starts faster, while the rest are 2MB. Bittorrent v2 compatible 16kb would have been nice, but it's too much overhead for blossom servers.
On (source code in the hashtree repo iris-files package) I have a service worker that handles http range requests to /htree/nhash... and the browser video player can request only the relevant part of the file from the hashtree.
Iris Video