TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

BEP 30: Merkle hash torrent extension

66 点作者 mariorz超过 10 年前

6 条评论

amluto超过 10 年前
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 未加载
qqueue超过 10 年前
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 未加载
zmanian超过 10 年前
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
andrewchambers超过 10 年前
Isn&#x27;t this how git works? I would have thought bit torrent did this all along.
评论 #8982457 未加载
评论 #8984117 未加载
评论 #8982887 未加载
评论 #8982421 未加载
whyrusleeping超过 10 年前
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>
edonkey超过 10 年前
&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 未加载