chiark / gitweb /
server wip meta
[hippotat.git] / PROTOCOL
index 1a385c3a143e93f180159f4d0347cd9d0618c474..4c813b9dac9c072d8020e1ea78061c6ef97b05de 100644 (file)
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -22,6 +22,8 @@ Client form parameters (multipart/form-data):
                        token
                        target_requests_outstanding
                        http_timeout
+                       max_batch_down          } not supplied
+                       max_batch_up            }  by older clients
  d              data (SLIP format, with SLIP_ESC and `-' swapped)
 
 
@@ -31,6 +33,7 @@ Authentication token is:
         HMAC(secret, <time_t in hex>)
 and the hash function is SHA256
 
+
 Possible future nonce-based authentication:
 
 server keeps big nonce counter for each client
@@ -39,4 +42,5 @@ meaning is:
 also server keeps bitmap of the previous ?64 nonces,
  whether client has sent them
 
-client picks.... xxx
+difficult because client-generated nonces would have to never go
+backwaards which basically means never-rewinding state on the client.