Diff: [root] @ 0698d2499fe | faq | css

more meta docs

File: hellnet/protocols/http/meta [Diff]

diff --git a/hellnet/protocols/http/meta b/hellnet/protocols/http/meta
index b6358b3..8c054c2 100644
-- a/hellnet/protocols/http/meta
++ b/hellnet/protocols/http/meta
@@ -16,8 +16,6 @@ h4. Description

This resource provides metatrees, its dates and signatures

When updating, client should first check the date; if it's bigger than his current metatree, then client downloads the tree and signature, optionally decrypts both using supplied encryption key and checks if server's announced date, key and name match ones in metatree itself and the signature validity. If these are ok, then it replaces its own metatree with downloaded one.

h4. Response

Metatree, its date and signature. Example:

File created: 33188 hellnet/tech/URIs/chunk [Diff]

diff --git a/hellnet/tech/URIs/chunk b/hellnet/tech/URIs/chunk
new file mode 100644
index 0000000..73467c0
-- /dev/null
++ b/hellnet/tech/URIs/chunk
@@ -0,0 +1,16 @@
h1. Chunk hell:// URIs

h2. Regex

^hell://chunk/([0-9a-f]{64})$

$1: chunk hash

h2. Optional parameters

name: Any string, contents' filename
key: hex number, symmetric encryption key

h2. How it works

Searches for chunk with hash=$1, then downloads it. Name is received from "name" parameter, otherwise $1(.key) may be used.
\ No newline at end of file

File created: 33188 hellnet/tech/URIs/file [Diff]

diff --git a/hellnet/tech/URIs/file b/hellnet/tech/URIs/file
new file mode 100644
index 0000000..a0dbf96
-- /dev/null
++ b/hellnet/tech/URIs/file
@@ -0,0 +1,16 @@
h1. File hell:// URIs

h2. Regex

^hell://file/([0-9a-f]{64})$

$1: chunk hash

h2. Optional parameters

name: Any string, contents' filename
key: hex number, symmetric encryption key

h2. How it works

Searches for chunk with hash=$1, then unrolls it as [[../recursive-filelinks|recursive filelink]] and downloads the file. Name is received from "name" parameter, otherwise $1(.key) may be taken.
\ No newline at end of file

File created: 33188 hellnet/tech/URIs/meta [Diff]

diff --git a/hellnet/tech/URIs/meta b/hellnet/tech/URIs/meta
new file mode 100644
index 0000000..8fcf8fb
-- /dev/null
++ b/hellnet/tech/URIs/meta
@@ -0,0 +1,22 @@
h1. Meta hell:// URIs

h2. Regex

^hell://meta/([0-9a-f]{64})/([^/]+)/(.*)$

$1: public key hash
$2: meta name

h2. Optional parameters

name: Any string, contents' filename
key: hex number, symmetric encryption key

h2. How it works

When updating, client should first check the date; if it's bigger than his current metatree, then client downloads the tree and signature, optionally decrypts both using supplied encryption key and checks if server's announced date, key and name match ones in metatree itself and the signature validity. If these are ok, then it replaces its own metatree with downloaded one.

h2. See also

* [[../../protocols/http/meta|meta resource]]
* [[../metatrees]]
\ No newline at end of file

By Voker57 on 2009-11-19 22:10:09 +0300 Powered by bitcheese wiki engine