Article View: news.software.nntp
Article #64964Re: xBin library version 0.1
From: Curt Welch
Date: Mon, 21 Apr 2003 15:53
Date: Mon, 21 Apr 2003 15:53
60 lines
4184 bytes
4184 bytes
"Chris AtLee" <catlee@canada.com> wrote: > On Tue, 08 Apr 2003 16:42:57 +0000, Mirco Romanato wrote: > > Your work is very interesting. > > I'm now are documenting myself about nntp binary posting, utility and > > source code. > > This because I want to code a plug-in for Shareaza (www.shareaza.com) > > when the plug-in SDK will be published. > > The plug-in is aimed to integrate the binary newsgroups distributions > > channel with the P2P Gnutella network. > > Apparently to integrate the two network is needed that the posts with a > > binary file chunk have: > > 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. However, like this size problem I've posted about, you could define the xBin file-id hash to be built by hashing both the file data, and the total file size, and the file SHA-1 hash all together. We can then verify that the SHA-1 value is consistent with the xBin hash, but now with the TTH hash. 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. > > 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. 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. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<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!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!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>Show Full Headers
Complete Article Headers
Message-ID: <20030421115343.200$MS@newsreader.com>
Subject: Re: xBin library version 0.1
Date: Mon, 21 Apr 2003 15:53:43 +0000
From: curt@kcwc.com (Curt Welch)
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>
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!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com oFMxBF=c4dr5ru0h3lmT/yn5oPy9_EOYyXEV3MSzG=RxTrfx
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 59