🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64781

Re: xBin library version 0.1

#64781
From: Chris AtLee
Date: Tue, 08 Apr 2003 17:40
39 lines
3201 bytes
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
> 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.  Currently xBin does have a SHA1 hash that represents the entire
file, but it is not created just by applying the SHA1 algorithm to the
entire file at once.  Hashes for chunks of data are created, and then
those hashes are combined in a way to form a binary tree.  The root hash
is the one that represents the file.  This is done so that it is possible
to verify that one individual post is a valid part of the entire file by
specifying only part of the hash tree.  Not that it's difficult at all to
include another header specifying the SHA1 hash for the entire file.

xBin also doesn't include the hashes of the data it contains in the
headers anywhere, since those can be computed from the data itself (and
indeed should be computed from the data if you don't trust that the post
is genuine).  However, xBin does specify which chunk(s) the article does
contain in the headers, so it is possible for newsreaders to grab only the
articles it needs.

Interesting concept though!  You may want to wait and see if Curt Welch
has any comments on this, since xBin is really his baby.

Cheers,
Chris
Technical Details
Message-ID: <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!logbridge.uoregon.edu!gestalt.direcpc.com!cyclone2.usenetserver.com!newsfeeds-atl1!newsfeeds-atl2!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail
References: <pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2003.04.08.17.40.39.978437@canada.com>
Subject: Re: xBin library version 0.1
Date: Tue, 08 Apr 2003 17:40:41 GMT
From: "Chris AtLee" <catlee@canada.com>
References: <pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@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!logbridge.uoregon.edu!gestalt.direcpc.com!cyclone2.usenetserver.com!newsfeeds-atl1!newsfeeds-atl2!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail
User-Agent: Pan/0.13.4 (She had eyes like strange sins. (Debian GNU/Linux))
Newsgroups: news.software.nntp
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 38
NNTP-Posting-Host: 24.114.32.59
X-Complaints-To: abuse@rogers.com
X-Trace: news01.bloor.is.net.cable.rogers.com 1049823641 24.114.32.59 (Tue, 08 Apr 2003 13:40:41 EDT)
NNTP-Posting-Date: Tue, 08 Apr 2003 13:40:41 EDT