Diff: [root] @ 74b507e7539 | faq | css

More on queries

File: hellnet/protocols/queries [Diff]

diff --git a/hellnet/protocols/queries b/hellnet/protocols/queries
index 967fc55..59335f3 100644
-- a/hellnet/protocols/queries
++ b/hellnet/protocols/queries
@@ -1,5 +1,7 @@
h1. Hellnet queries

Warning: This document is WIP(Work In Progress) and incomplete. No implementation of these features was made yet.

h2. Basics

Query is valid Hellnet [[transfer|transfer module]] that has three mandatory fields:
@@ -8,4 +10,9 @@ Query is valid Hellnet [[transfer|transfer module]] that has three mandatory fie
* 'type' -- query type.
The one currently defined type is 'hash', which queries for data with hash specified in 'args'.
* 'args' -- query arguments.
\ No newline at end of file
A string that contains query arguments (such as data digest for 'hash')
\ No newline at end 'hash').
* 'id' -- unique ID of file query, is [[/hellnet/crypto/hashing|digest]] of string 'type:args:origin'.
* 'origin' -- key ID of query origin.
* 'signature' -- cryptographic (GnuPG?) [[/hellnet/crypto/hash/asymmetric|signature]] of 'id', made with secret key from 'origin'.

Queries are created by node 1, being passed over to other nodes. One node should [[responses|respond]] to query if it has needed information and not overloaded, thus stopping passing the query, or pass query along otherwise.
\ No newline at end of file

By Voker57 on 2009-03-01 20:00:17 +0300 Powered by bitcheese wiki engine