🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63375

Re: A short summary of xBin

#63375
From: Curt Welch
Date: Mon, 20 Jan 2003 01:34
56 lines
3882 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Any file to be posted to Usenet is divided into a series of blocks, which
> are hashed.  Those hashes are then combined and hashed, recursively,
> creating a tree of hash values culminating in a hash that represents the
> complete file (and the complete hash tree).  This hash serves to identify
> that file from an xBin standpoint.

And it works just like any other "normal" hash, like an MD5 of the file.
The xBin "file-id" becomes the unique name of the file, and because of the
cryptographic strength of the hash, it's totaly impractical (bascially
impossible) to create a different file which has the same hash value.

The file length is also included so the full "unique name" of the file
would be the hash combined with the total file length.

> Each post making up that file would include, in a header, the hashes of
> the parts in that post and the necessary details to establish where they
> fit into the hash tree of that file and to identify which file they're
> part of.

Almost.  The header does not include the hash values for the data in the
article.  The header includes the hash values from the hash-tree of all the
data from the file which is NOT in the article.  It does that so you will
have everything you need to recompute the full and unique file-hash so that
you can prove that the data in the article does in fact belong to a file
with a file-hash of XYZ.  It's just as if you you were to include all the
other data in the headers so that you could recompute the full-file MD5
value to prove tha the data was valid.  The beauty of the tree hash is that
we only need to include a few hundre bytes of data in the header instead of
including the entire rest of the file as you would have to if you just used
a straight MD5 of the entire file as it's "unique ID".

> Finally, all posts made using xBin would use special message IDs that
> would encode which file they're part of as well as the total size of that
> file.

> These message IDs would be in a reserved domain so that they can
> be recognized by news servers.

They would be of a unique format so they could be recognized by news
servers.  I think the "reserved domain" approch is not the best way to do
that, but it's one option.

> The intention is that news servers may
> wish to refuse articles at the CHECK phase based on the total size of
> binary that the posts contain, and also that news readers can use the
> information in the message IDs to find all the posts associated with a
> particular binary without having to download other headers or guess based
> on the Subject header.

Yes, that's a nice summary.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030119203408.848$5u@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!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <ylvg0kzkhx.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20030119203408.848$5u@newsreader.com>
Subject: Re: A short summary of xBin
Date: Mon, 20 Jan 2003 01:34:08 +0000
From: curt@kcwc.com (Curt Welch)
References: <ylvg0kzkhx.fsf@windlord.stanford.edu>
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!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com /81EHCsVE58vLL3JiXTTd=YjkwsKbz4FdVchCLXZ8K=9k7/yjn
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: 55