🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62460

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

#62460
From: Rene
Date: Fri, 27 Dec 2002 19:41
40 lines
2971 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Rene]:
> >   Sorry, it was defaulted to on in the webinterface here... should
> >   be off from now on unless I made a mistake.
> it was still on.

But not anymore, is it?

> >   But there is no need to add them all over and over again. That's
> >   the beauty of the hash'es one-way function. You post under the
> >   file hash, this is the single most important identifier. Then for
> >   example, send as the "0" part all the block-hashes, once only.
> I don't want a scheme which relies on part 0.

Right, it works but is not as robust as Curt's solution with the tree-hash.
I didn't see the use of the tree-hash when I wrote that solution. Both
versions would work but the tree-hash variant is clearly superior.

> not a problem.  that 1 GB file in 2000 500 kB chunks will have a hash
> tree which is only 11 levels deep.  adding the neighbouring hash means
> that each part needs to include 12 hashes, each 20 bytes large, for a
> total of 240 bytes.  the overhead is negligible, but the robustness is
> very much increased.

Level is not the important variable. Worst Case is. And I've now provided
the algorithm / the java programm to calculate those. A 2GB (2*10^9, not
2^..) file needs 444445 blocks if a block is 4500 bytes. That creates a
worst case of 36 hashes (not counting the root) 36*27 Bytes = 972 Bytes.
Damn close to the 1000 Byte-header limit. And you haven't said
"X-bin-Signature" then...

If a block were 4 times as large (18000 Bytes), then a 2GB file would span
111112 blocks, the worst case were 32, which is 864 Bytes for hashes alone.

A 20GB file would exceed 1000 Bytes with a worstcase of 39 though.

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Technical Details
Message-ID: <20021227144125.156$Nm@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!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223150103.132$Bb@newsreader.com> <1rd6ns9y06.fsf@tolf.ifi.uio.no> <20021223181329.108$LI@newsreader.com> <1rfzsjz87r.fsf@sjau.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <20021227144125.156$Nm@newsreader.com>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Fri, 27 Dec 2002 19:41:25 +0000
From: Rene <invalid@email.addr>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223150103.132$Bb@newsreader.com> <1rd6ns9y06.fsf@tolf.ifi.uio.no> <20021223181329.108$LI@newsreader.com> <1rfzsjz87r.fsf@sjau.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!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com Subscriber
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com /4Bx.iBYOhLjYWX5cRr3@.XKkSw0gCemE48c0RLiF_@JnKos0j
Lines: 39