SSKs are the most annoying little URIs. They have a way of making proposed
URI standards accomodate them in convoluted ways.
So first I propose an alternate SSK syntax:
freenet:SSK@routingkey[,cryptokey],docname
It's decidable b/c there are always either 2 or 3 fields.
Now, since SSKs are the only type for which DBRs make sense, we make a rule
that the sequence $<increment[,baseline]> within the docname for the new
SSK syntax *only*, will be substituted with the appropriate number of seconds
for DBR magic. Also $$ will be taken as $<86400>.
Finally, any CHK or SVK, or any SSK in the new syntax, becomes a mapfile if
there is a / followed by the lookupname.
these 2 are equivalent:
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE/docname
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname
these are DBRs:
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,$$-docname
daily update. becomes => ,987379200-docname
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,pre-$<3600>-post
hourly update. becomes => ,pre-987422400-post
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname-$<3600,1800>
every hour on the half hour. becomes ,docname-987424200
with mapfile lookups:
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname/foo.jpeg
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,$$-docname/
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,pre-$<3600>-post/index.html
freenet:SSK@GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname-$<3600,1800>/test.html
CHK mapfile:
freenet:CHK@2QGpNw0p5x8VFp0p-o~ni62~0AsPAwE,lv1PA1WhOobga5~F~nlT3A/lookupname
convenience CHK (not a mapfile):
freenet:CHK@2QGpNw0p5x8VFp0p-o~ni62~0AsPAwE,lv1PA1WhOobga5~F~nlT3A/kernel-source-3.0.1.tar.bz2
(SVKs would work just like CHKs)
Better?
--
# tavin cole
#
# "The process of scientific discovery is, in effect,
# a continual flight from wonder."
# - Albert Einstein
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl