More on queries
File: hellnet/protocols/queries [Diff]
-- 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.
Query is valid Hellnet [[transfer|transfer module]] that has three mandatory fields:
@@ -8,5 +10,10 @@
* 'type' -- query type.
The one currently defined type is 'hash', which queries for data with hash specified in 'args'.
* 'args' -- query arguments.
A string that contains query arguments (such as data digest for 'hash') 'hash').
* 'id' -- unique ID of 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.