Damus
Sirius · 2w
Yes, it uses kind 30078 events with tags: d Tree name (replaceable event key) l "hashtree" label for discovery hash Merkle root SHA256 (64 hex chars) key Decryption key (public trees) encryptedKey XO...
SatsAndSports profile picture
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?
2
Sirius · 2w
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.
Sirius · 2w
On https://video.iris.to/ (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.