diff --git a/rfc/0006_ws2p_v2.md b/rfc/0006_ws2p_v2.md index 2c9abf298a05fe2024a9f182c538c76730ea9ef8..90da17dd6e96b0fd00f083d0e2b661529881ca47 100644 --- a/rfc/0006_ws2p_v2.md +++ b/rfc/0006_ws2p_v2.md @@ -717,16 +717,6 @@ peer_cards := see [definition of binary peer card](#peer-card-binary-format) ## WS2Pv2 Messages -### List of accepted v1 messages - -Some WS2Pv1 messages are accepted within WS2Pv2 connections, here is the exhaustive list : - -* document messages -* v1 requests -* responses to v1 requests - -WARNING : Exception with the ABF api feature : In a WS2P connection between two nodes that both support ABF api feature, any WS2Pv1 message are rejected ! - ### REQUESTS | data name | size in bytes | data type | @@ -937,14 +927,14 @@ HEAD v3 PEG grammar : hexa_upper = @{ ASCII_DIGIT | 'A'..'F' } base58 = { !("O" | "I" | "l") ~ ASCII_ALPHANUMERIC } base64 = { ASCII_ALPHANUMERIC | "+" | "/" } - + // Numbers rules tens = @{ '1'..'9' ~ ASCII_DIGIT } u8_hundreds = @{ ("2" ~ ('0'..'4' ~ ASCII_DIGIT | ('0'..'5'){2})) | ("1" ~ ASCII_DIGIT{2}) } u8 = @{ u8_hundreds | tens | ASCII_DIGIT } no_zero_u_int = @{ '1'..'9' ~ ASCII_DIGIT* } u_int = @{ "0" | no_zero_u_int } - + // Usefull types rules currency = @{ ASCII_ALPHA ~ (ASCII_ALPHANUMERIC | "-" | "_"){,255} } block_id = @{ u_int } @@ -952,7 +942,7 @@ HEAD v3 PEG grammar : pubkey = @{ base58{43,44} } blockstamp = ${ block_id ~ "-" ~ hash } ed25519_sig = @{ base64{88} | (base64{87} ~ "=") | (base64{86} ~ "==") } - + // HEADv3 rules api_outgoing_conf = @{ u8 } api_incoming_conf = @{ u8 } @@ -961,7 +951,7 @@ HEAD v3 PEG grammar : software = @{ ASCII_ALPHA ~ ASCII_ALPHANUMERIC* } soft_version = @{ ASCII_DIGIT ~ "." ~ ASCII_DIGIT ~ "." ~ ASCII_DIGIT ~ ("-" ~ ("a" | "b" | "rc") ~ ASCII_DIGIT ~ ("." ~ ASCII_DIGIT){0,2})? } step = @{ u_int } - + head_v3 = ${ "3:" ~ currency ~ ":" ~ api_outgoing_conf ~ ":" ~