Article View: news.software.nntp
Article #64970Re: xBin library version 0.1
From: Mirco Romanato
Date: Mon, 21 Apr 2003 18:00
Date: Mon, 21 Apr 2003 18:00
85 lines
4639 bytes
4639 bytes
"Curt Welch" <curt@kcwc.com> ha scritto nel messaggio news:20030421115343.200$MS@newsreader.com... > > > 1) the SHA1 hash of the original file > How important is that really? If we switch to useing a TTH which is > compatable with other P2P systems, do we also need to make sure the SHA1 > hash is supplied in all articles or can we just ignore that? If someone > publishes a partial file on Usenet and tells us what the SHA-1 hash of the > full file is, we can not trust what they tell us because we have no way to > verify it. Yes. TTH is needed. SHA-1 is desidered, but it is not needed. Also, in gnutella the SHA-1 is checked when the file is completed (and after TTH is checked) SHA-1 is useful because not all gnutella clients use TTH, but all of them use SHA-1. But if a node using TTH have the complete file it can send out the SHA-1 of it. > My guess is that the SHA-1 of the file is something that can never really > be useed safely because it can't be trusted. And if you do start to > include it and make use of it, it will simply open up a hole which will, > down the line, be abused. It can be abused only in a way. If someone claim a file have a particular SHA-1, we can download the file and check. If it don't check we mark the file inaffidable and leave the users to decide what to do. But I only advocate using the SHA-1 with TTH and not without. > > > 2) the TigerTree hash (TTH) of the chunk (chunks are better with a size > > > of 1024*2^N bytes with N from 0 to 10) > > > 3) the starting and ending points of the chunk in the file and > > > maybe(for cosmetical reason mainly) the size of the file > > Hmm, I'm not sure how easy it would be to merge the two together right > > now. > After all the messages on this, my current thought is that I (or someone) > has to do more research on what the current P2P protcols are actaully > using. Exactly what TTH (or modified TTH) are they using, and what are > they doing with it. Mirco has provided a ton of intersting ideas and > pointers to work in this area but some of the important details are still > unclear in my mind. TTH http://sourceforge.net/projects/tigertree/ here there is the standard Java and C implementation (8 days old) with tha last fixes. You are lucky, they must change the code 3 times in 6 months. Bitcollider http://sourceforge.net/projects/bitcollider with the code to near any type of hash and metadata extraction It also have a few plug-ins to extract metadata from particular file (MP3, PDF, etc.) > The possible option for xBin is to switch from the current SHA-1 based hash > with block sizes optimized for Usenet only to one which is compatible with > a P2P standard. But the need to solve the accuracy of the file size data > included in each article by hashing it along with the file data changes the > hash in a way which might prevent it from every being compatible with the > P2P standards. But people in the P2P community saw this same problem, and > the need to make this change for P2P seemed, in the e-mail message I saw, > to create problems within the P2P work already done as it was and I don't > know know how they resolved that problem. I reccoment to use the project above like standards, because they are used like standards for Gnutella (and eMule). I think others network will use the same code in future, because it work well. Mirco
Technical Details
Message-ID:
<VkWoa.55726$iy5.1660618@twister2.libero.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailReferences:
<pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it> <pan.2003.04.08.17.40.39.978437@canada.com> <20030421115343.200$MS@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <VkWoa.55726$iy5.1660618@twister2.libero.it> Subject: Re: xBin library version 0.1 Date: Mon, 21 Apr 2003 18:00:21 GMT From: "Mirco Romanato" <painlord2k@yahoo.it> References: <pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it> <pan.2003.04.08.17.40.39.978437@canada.com> <20030421115343.200$MS@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail Newsgroups: news.software.nntp Lines: 84 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 151.42.101.249 X-Complaints-To: abuse@net24.it X-Trace: twister2.libero.it 1050948021 151.42.101.249 (Mon, 21 Apr 2003 20:00:21 MET DST) NNTP-Posting-Date: Mon, 21 Apr 2003 20:00:21 MET DST Organization: [Infostrada]