[BitTorrent] BT2 & hash trees

Olaf van der Spek OvdSpek at LIACS.NL
Thu Jul 22 06:51:46 EDT 2004

> Whenever I request a part of the hash tree, I have to be able to verify it
> against the root hash instantly. I cannot do that, if I start with only he
> hash and request directly some hash for a 32KB piece. I would either have
> work my way through n levels of the hash tree first, requesting 2*n hashes
> allow me to verify the hash of that first piece - or I could request the
> level as a whole to verify all hashes of the nth level against the root
hash at
> once.
> The latter solution should clearly be preferred because otherwise you
would have
> to request twice as many hashes and send a lot more requests producing

You don't need to transfer the entire path to the root each time.
After some time, you already have part of the tree and you only need the
first part of the path (looking from the bottom).
That way, you'll transfer n, not 2n.

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!

Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the BitTorrent mailing list