[bittorrent] Pieces hash verification
andmart at gmail.com
Mon Oct 4 18:27:10 EDT 2010
I'm building a client and this part of verification is not totally clear
I'm wondering against hash of what should I compare the hash that comes in
the metafile *.torrent entry "pieces".
Should I save the downloaded piece into a file and take the hash of the file
or take the hash from a binary array with the downloaded bytes? or else?
Could anyone give me a hint how to do that?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the BitTorrent