TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

BEP 30: Merkle hash torrent extension

66 pointsby mariorzover 10 years ago

6 comments

amlutoover 10 years ago
I think it&#x27;s sad that they&#x27;re using SHA-1 for this. SHA-1 is a bit weak, and the hashes are too short. There&#x27;s a reason that SHA-1 is deprecated for X.509 certificates.<p>At the very least, this should use SHA-256.<p>If they really did it right, though, the protocol would use a secure tree hash. The construction they&#x27;re using has trivial collisions, which are only avoided because the size of the file comes from a trusted source. A good hash (e.g. the Sakura construction) doesn&#x27;t have this problem. Fixing that would make the resulting torrent files or URLs a bit shorter, as the size could potentially be omitted.
评论 #8983036 未加载
评论 #8983157 未加载
评论 #8982667 未加载
qqueueover 10 years ago
Hash trees are pretty cool. For some fancier uses, see the Peer to Peer Streaming Protocol (PPSP), which is authored by the libswift&#x2F;tribler guys.<p><a href="https://datatracker.ietf.org/wg/ppsp/documents/" rel="nofollow">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;wg&#x2F;ppsp&#x2F;documents&#x2F;</a><p>Basically, instead of the stream source having to sign every single new chunk (so peers can verify that they&#x27;re getting the right data), the source signs subtree hashes of the new data and slowly builds up a larger hash tree. Once the stream is over, the complete hash tree is instantly seedable by anybody in the original stream.
评论 #8982439 未加载
zmanianover 10 years ago
Very similar to IPFS&#x27;s merkle DAG and seems like a critical element of getting content centric networking projects like Bitorrent, Inc&#x27;s Project Malestrom up and running
andrewchambersover 10 years ago
Isn&#x27;t this how git works? I would have thought bit torrent did this all along.
评论 #8982457 未加载
评论 #8984117 未加载
评论 #8982887 未加载
评论 #8982421 未加载
whyrusleepingover 10 years ago
ipfs uses exactly the same strategy to distribute content via the hash of their root merkleDAG node. <a href="http://ipfs.io" rel="nofollow">http:&#x2F;&#x2F;ipfs.io</a>
edonkeyover 10 years ago
&quot;Large torrent files put a strain on the Web servers distributing them&quot;.<p>Finally! bittorrent designers are acknowledging the centralized deficiency in the torrent protocol and implementing Merkle &#x2F; root hash distribution model, as eDonkey &#x2F; eMule used since 2000&#x27;s:<p><a href="https://en.wikipedia.org/wiki/Ed2k_URI_scheme#eD2k_hash_algorithm" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ed2k_URI_scheme#eD2k_hash_algo...</a><p>15 years later, everything old is new again.
评论 #8982605 未加载
评论 #8982482 未加载