[bittorrent] Pieces hash verification

André Martins andmart at gmail.com
Mon Oct 4 18:27:10 EDT 2010


Hi all,

I'm  building a client and this part of verification is not totally clear
for me.

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.



[]'s
André Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/bittorrent/attachments/20101004/9281a765/attachment.html 


More information about the BitTorrent mailing list