spec/waku-handshake-improvements (#65)

This commit is contained in:
Dean Eigenmann 2019-12-05 11:28:28 +01:00 committed by GitHub
parent 70e8c06730
commit f3a3205782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 20 deletions

16
waku.md
View File

@ -78,11 +78,24 @@ Using [Augmented Backus-Naur form (ABNF)](https://tools.ietf.org/html/rfc5234) w
; Packet codes 0 - 127 are reserved for Waku protocol
packet-code = 1*3DIGIT
status = "[" version pow-requirement [ bloom-filter ] [ light-node ] "]"
; limit ip is the number of accepted packets per s for an IP
limit-ip = 1*DIGIT
; limit peerid is the number of accepted packets per s for a peer id
limit-peerid = 1*DIGIT
; limit topic is the number of accepted packets per s for a topic
limit-topic = 1*DIGIT
rate-limts = "[" limit-ip limit-peerid limit-topic "]"
status = "[" version pow-requirement [ bloom-filter ] [ light-node ] [confirmations-enabled] [rate-limits] "]"
; version is "an integer (as specified in RLP)"
version = DIGIT
confirmations-enabled = BIT
; pow is "a single floating point value of PoW.
; This value is the IEEE 754 binary representation
; of a 64-bit floating point number.
@ -180,6 +193,7 @@ message is received, the node MUST ignore these messages and SHOULD disconnect
from that peer.
Status messages received after the handshake is completed MUST also be ignored.
The fields `bloom-filter`, `light-node`, `confirmations-enabled` and `rate-limits` are OPTIONAL. However if an optional field is specified, all subsequent fields MUST be specified in order to be unambiguous.
**Messages**