> Don't use trailing field to refer to the data part of the document. This
> will only end up with everybody confused. Trailing field is all the binary
> data that follows a DataSend message, this includes the encrypted
> document, the metadata and the data parts.

Well, what I mean is that when you get the information out of the trailing
field, decrypt it and all, what you end up with (and this is just a
client-convention. as far as the nodes care it could be something entirely
different since it's encrypted anyway) is some headers and some data. This
is unrelated to the headers in the message. This is in the content which
is passed around as an encrypted blob in the trailing field. I think that
the format of this file should be basically the format of a message. That
is you have some headers in the normal FNP format. The header section is
terminated by a trailing field, following by the actual file data.

So you have a message:
DataReply
UniqueID=3289342809432809432
somethingelse=blah
blah=blah
Data
<encrypted blob of gibberish>

The client decrypts the data and finds:
<some crazy binary header stuff that Scott put in>
Content-Type=image/gif
Author=gifs-r-us
Subject=penguin
Data
<binary blob of gif data>

I think that, as formats go, this is an elegant one since it can hopefully
reuse the same parser as the messages.

> I don't mean to be anal, but we have enough confusion of terms here as it
> is.

I'm all for the disambiguation of terms. I don't know how to better label
what I'm talking about.

> > I prefer to use FNP for everything. I would most like it if once the
> > trailing field was encrypted, it contained a document in Freenet protocol
> > (fields followed by trailing field) and that such documents could be
> > nested.
> 
> Where have you been? The document _is_ encrypted, it has been for several
> months...

I meant decrypted, sorry. Once it is decrypted, the resulting document is
in the same format as the message with the actual binary data of the file
in the trailing field of this new message-like stream.

You have to have *some* format for this blob of text which contains both
headers and binary data and we already have a very nice format for storing
a blob of text which contains both headers and binary data.



_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to