🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62410

Re: xBin (Power-Post 2003 - requesting input from authorities..)

#62410
From: Kjetil Torgrim Homme
Date: Mon, 23 Dec 2002 17:55
75 lines
4650 bytes
[Curt Welch]:
>
>   Putting the correct file information in the Message-ID also allows
>   downlaod tools - especially ones searching multiple servers - to
>   only download the message-ids from the servers (XHDR Message-ID)
>   and still be able to correctly identify all the parts of a
>   multipart file post.

just a clarification: all the _candidate_ parts of a multipart file
post.  it needs to download the header (X-Bin-Signature) of the
candidates to identify the bogus parts.

>   Hash trees are a special type of file hash which is built using
>   any standard hash function like MD5 or SHA-1.  They are bit
>   complex.  But they work by dividing a file into blocks, and
>   calculate a hash for each block.  Then, for each two adjacent
>   blocks, you take the two hash values, treat them as one set of
>   data, and calculate a hash of that data.  You continue doing this
>   calculating hashes of combined hashes in a big binary tree, until
>   you get to the top and have only one hash value left.  That
>   becomes the "hash" of your file.

let me see if I understand you correctly.  let's say it's a 13 part
posting.
                              
                              l
                +----------------------------+
                j                            k
        +--------------+                +---------+
        |              |                |         |
        g              h                i         |
    +------+        +------+        +------+      |
    |      |        |      |        |      |      |
    a      b        c      d        e      f      |
  +--+    +--+    +--+    +--+    +--+    +--+    |
  |  |    |  |    |  |    |  |    |  |    |  |    |
  1  2    3  4    5  6    7  8    9 10   11  12  13

"1" is the hash of part 1, "a" is the result of hashing the
concatenation of "01" and "02", "g" is the result of hashing the
concatenation of "a" and "b", and so on.

part 1 should include its own hash, as well as a, g, j, and l.
part 4 should include its own hash, as well as b, g, j, and l.
part 13 should include its own hash, as well as k and l.

the assembly program can notice discrepancies both by comparing hashes
(the "g" of 1 should be equal the "g" of "4"), and by verifying that
the hashes are correct (the hash of "a" from 1 and "b" from 4 should
equal the "g" found in either).

(this ignores the possibility that the size of a part is not a power
of two multiple of the chosen block size.  in that case, each part
must contain the hashes of its internal tree.)

>   But the larger side-effect is that because of the way the
>   tree-hash works, the file segments you post must be sized so they
>   start and stop on the tree-hash block boundries.

you mentioned the problems finding a block size which fits the
uuencode line length.  I think you should ignore that problem.  if the
software is written correctly, it will handle the "short" line without
problems.  also, neither MIME nor yEnc has this problem, so I think
it's unnecessary to make the block size something obscure just for bug
compatibility with uudecode.

>   This means it's imposible to correctly label "typical" posts after
>   the fact

yes, it must be integrated in the posting tool.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1rfzsoaacf.fsf@vingodur.ifi.uio.no>
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!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rfzsoaacf.fsf@vingodur.ifi.uio.no>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Mon, 23 Dec 2002 17:55:44 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@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!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 74
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1040666144 17903 129.240.68.200 (23 Dec 2002 17:55:44 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 23 Dec 2002 17:55:44 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7