🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63777

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

#63777
From: Curt Welch
Date: Sat, 01 Feb 2003 03:54
103 lines
6786 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <1rwuklt8nb.fsf@vingodur.ifi.uio.no>,
>  Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>
> > [J.B. Moreno]:
> > >
> > >   You got a message-id where this was disccused?
> >
> > navigating this thread is very painful :-)
>
> Yes, I've changed the Subject, perhaps that will help.

I'm still 150 messages behind and trying to catch up.  Of course, I'm now
reading and replying out of order, so I'm sure this is only adding more
confusion to the discussion.

> > >   Because while I don't think that the number of files in the set,
> > >   or the number of the file *in* the set, is all that important
> > >   (i.e. put it in other headers), a reasonably unique
> > >   collection/series id sounds like a good idea to me -- if I was
> > >   interested in collections, then I'd want an easy way to say "get
> > >   this collection" and not have to specify each and every file in
> > >   the collection.
> >
> > if you use the file set tagging in my xBin draft, you can do this.
> > I'm not sure if it is a good idea, though, since it complicates
> > readers looking for a single file in that set.
>
> I don't see why (of course I don't have your draft handy either to
> check first).  Set tagging should simply be an optional filed in the
> xBin structure -- and not a particularly large one IMO.

I haven't read the draft yet, but I know it's there in my list of 150
unread messages...

However, I think there's a very simple solution to this that doesn't
require file-set-taging at all.

Anyone that wants to post a file-set must post a file which defines the
set.  That file becomes the "directory" of the set.

There's no reason at all to mark the files as being part of the set.

The xBin file-id of the index file is the "set-id".  And because the file
containes the xBin file-ids (i.e. their hash and length) of every file in
the set, and the xBin file-id of this file is a hash of that file, the xBin
id of the index file is a cryptographicly strong indentifier of all the
data in all the files of the set.

If you want to tell people about your "set", all you have to do is give
them the xBin ID if the index file.  It's impossible for anyone to fake or
corrupt the set because this index file ID is a strong hash of all the data
in all the files in the set.

And, doing it this way (instead of putting the set information into each
file), allows the same file (posted once) to be used in multiple sets with
no problems.  If you put anything in the file that says it's part of set X,
you break the ability to do this.

What we might want to do is add one marker in the xBin ID that defines the
file to be a xbin-file-set file. (this is a very limitied and specialized
Content-Type marker). We would then be forced to come up with a formal
defintion of the format of this file (just like you are forced to define
the format of a directory when you create a file system).

The other advantage of this technique is that you could include other
file-set files in your list.  This alows you to create an arbitrary number
of sets of sets of sets - a full directory hierarchy system (like putting
tar files inside of tar files) and have the download tool automatically
"know" by looking at each id that's it's the ide for a set and not just the
ID of a leaf file.

> > the hash used in the Message-ID is constructed by hashing all the root
> > hashes of the files concatenated in posting order (this makes the
> > resulting hash unstable if the ordering changes, but it would also
> > change if a file was added or removed, so I think it doesn't matter
> > much).  the Message-ID is also tagged with the file number in the set.
> > a reader looking for an individual file will have to peek inside to
> > see if that file is actually on its wanted list.  only the first
> > article with a given file number needs to be considered, and XHDR
> > Content-SHA1-Tree provides enough information.
>
> I think I need to find and read your draft, because while the above
> makes sense on a sentence level, it doesn't as a paragraph...
>
> -snip-
> > we could bloat the Message-ID to include both the individual file's
> > root hash and the set's root hash, but I'm not too fond of that idea.
>
> Neither am I -- in fact I don't think that hashing the set at all makes
> sense.  If you do that then you're basically treating it as one huge
> file, which it isn't.  Use a much smaller ID, and if someone lies about
> it, then so what?

Because if you do it my way, you get both.  You get a cryptographic secure
system which people can't fake to define "sets" and you don't need to add
anything else to the Message-ID or the articles in the set.  You just put
all the set meta-data into another file.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030131225424.637$3Q@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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <2bi91vg80cfhrc1vu78r8226o241ngmid7@news.iplweb.org> <D937CC94FFD1B06B.2262204BE93E08E7.8BD8BA8158F689AA@lp.airnews.net> <3o9b1vglqbf4sm72efks2ivgd7u5tqn7mr@news.iplweb.org> <1041671876.599031@ok-corral.gunslinger.net> <11ud1v47mk49997bgnnnun1d57mi52f0pk@news.iplweb.org> <20030104113637.385$sm@newsreader.com> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <20030119214844.592$sv@newsreader.com> <GJLW9.736995$vi4.98872@post-02.news.easynews.com> <20030131000233.119$Yb@newsreader.com> <310120031404147067%planb@newsreaders.com> <1rwuklt8nb.fsf@vingodur.ifi.uio.no> <310120031724340041%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <20030131225424.637$3Q@newsreader.com>
Subject: Re: Sets and xBin (was: xBin (Power-Post 2003 - requesting input from authorities..))
Date: Sat, 01 Feb 2003 03:54:24 +0000
From: curt@kcwc.com (Curt Welch)
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <2bi91vg80cfhrc1vu78r8226o241ngmid7@news.iplweb.org> <D937CC94FFD1B06B.2262204BE93E08E7.8BD8BA8158F689AA@lp.airnews.net> <3o9b1vglqbf4sm72efks2ivgd7u5tqn7mr@news.iplweb.org> <1041671876.599031@ok-corral.gunslinger.net> <11ud1v47mk49997bgnnnun1d57mi52f0pk@news.iplweb.org> <20030104113637.385$sm@newsreader.com> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <20030119214844.592$sv@newsreader.com> <GJLW9.736995$vi4.98872@post-02.news.easynews.com> <20030131000233.119$Yb@newsreader.com> <310120031404147067%planb@newsreaders.com> <1rwuklt8nb.fsf@vingodur.ifi.uio.no> <310120031724340041%planb@newsreaders.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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!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 hZED8m+JjfJ_.i/l5=Yn5wQ,SrvKFFn0IX+Cm.TXF=NpovhC
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: 102