Diff: [root] @ aead32646e6 | faq | css

Added queries

File created: 33188 hellnet/protocols/queries [Diff]

diff --git a/hellnet/protocols/queries b/hellnet/protocols/queries
new file mode 100644
index 0000000..e602cb3
-- /dev/null
++ b/hellnet/protocols/queries
@@ -0,0 +1,12 @@
h1. Hellnet queries

h2. Basics
Query is valid Hellnet [[transfer|transfer module]] that has three mandatory fields:
* 'hops' —- number of peers that this query has gone through.
Should start with random value from 0 to 5 (or more) for anonimity purposes and every peer must add 1 to its value. After certain amount of hops chances of dropping query should increase with every peer.

* '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')
\ No newline at end of file

By Voker57 on 2009-03-01 18:40:05 +0300 Powered by bitcheese wiki engine