Skip to content
Snippets Groups Projects
Commit 8782ce8c authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] RFC 0004 WS2Pv1: fix HeadV1 & HeadV2 bad documentation

parent 03039b2e
Branches
No related tags found
No related merge requests found
...@@ -249,8 +249,8 @@ Accepted since duniter-ts **v1.6.0** ...@@ -249,8 +249,8 @@ Accepted since duniter-ts **v1.6.0**
#### message field #### message field
API = "WS2P" API = `WS2P`
MESSAGE_TYPE = "HEAD" MESSAGE_TYPE = `HEAD`
PUBKEY := public key of the issuer node of this head PUBKEY := public key of the issuer node of this head
BLOCKSTAMP = `blockNumber-Hash` BLOCKSTAMP = `blockNumber-Hash`
...@@ -263,7 +263,7 @@ sig: ed25519 signature of the message field in base64. ...@@ -263,7 +263,7 @@ sig: ed25519 signature of the message field in base64.
Accepted since duniter-ts **v1.6.9** Accepted since duniter-ts **v1.6.9**
{ {
"message": String("API:MESSAGE_TYPE:1:PUBKEY:BLOCKSTAMP:WS2PID:SOFTWARE:SOFT_VERSION:POW_PREFIX"), "message": String("API:MESSAGE_TYPE:HEAD_VERSION:PUBKEY:BLOCKSTAMP:WS2PID:SOFTWARE:SOFT_VERSION:POW_PREFIX"),
"sig": String("MY90zXICfbYhLlz8VrL4HWPkphZEFR+bT2JWsoKdDMadgn0R0ZjsowDsnlfNqX4F4qeWeFoxhvdVgTO9VSghCA==") "sig": String("MY90zXICfbYhLlz8VrL4HWPkphZEFR+bT2JWsoKdDMadgn0R0ZjsowDsnlfNqX4F4qeWeFoxhvdVgTO9VSghCA==")
} }
...@@ -271,6 +271,7 @@ Accepted since duniter-ts **v1.6.9** ...@@ -271,6 +271,7 @@ Accepted since duniter-ts **v1.6.9**
API = `WS2P` API = `WS2P`
MESSAGE_TYPE = `HEAD` MESSAGE_TYPE = `HEAD`
HEAD_VERSION = 1
PUBKEY := public key of the issuer node of this head PUBKEY := public key of the issuer node of this head
BLOCKSTAMP = `blockNumber-Hash` BLOCKSTAMP = `blockNumber-Hash`
WS2PID := unique identifier of the ws2p endpoint WS2PID := unique identifier of the ws2p endpoint
...@@ -288,9 +289,9 @@ Accepted since duniter-ts **v1.6.9**, relayed fully since duniter-ts **v1.6.15** ...@@ -288,9 +289,9 @@ Accepted since duniter-ts **v1.6.9**, relayed fully since duniter-ts **v1.6.15**
_Nodes with versions lower than 1.6.15 bounce a degraded version of the head, only `message` and `sig` fields are relayed._ _Nodes with versions lower than 1.6.15 bounce a degraded version of the head, only `message` and `sig` fields are relayed._
{ {
"message": String("API:HEAD:1:PUBKEY:BLOCKSTAMP:WS2PID:SOFTWARE:SOFT_VERSION:POW_PREFIX"), "message": String("API:HEAD:HEAD_VERSION:PUBKEY:BLOCKSTAMP:WS2PID:SOFTWARE:SOFT_VERSION:POW_PREFIX"),
"sig": String("TPh2A3NS8cHj8yrJk1Yeldx2H6bPEp46cFAGZXKfxJcNgXL2sWrlirhIOlp8pkUFSrwDawWY1zO1jlgUqMvlAg=="), "sig": String("TPh2A3NS8cHj8yrJk1Yeldx2H6bPEp46cFAGZXKfxJcNgXL2sWrlirhIOlp8pkUFSrwDawWY1zO1jlgUqMvlAg=="),
"messageV2": String("API:HEAD:2:PUBKEY:BLOCKSTAMP:WS2PID:SOFTWARE:SOFT_VERSION:POW_PREFIX:FREE_MEMBER_ROOM:FREE_MIRROR_ROOM"), "messageV2": String("API:HEAD:HEAD_VERSION:PUBKEY:BLOCKSTAMP:WS2PID:SOFTWARE:SOFT_VERSION:POW_PREFIX:FREE_MEMBER_ROOM:FREE_MIRROR_ROOM"),
"sigV2": String("ta1lRrWsjGcYHcLdS75JgEW5B8ByRetFVUVVpakKNJBirhRe8HcYUHEOM7xj/+gUQGGOit6Gm5Q/lsvfsngWAQ=="), "sigV2": String("ta1lRrWsjGcYHcLdS75JgEW5B8ByRetFVUVVpakKNJBirhRe8HcYUHEOM7xj/+gUQGGOit6Gm5Q/lsvfsngWAQ=="),
"step": Number(0) "step": Number(0)
} }
...@@ -299,6 +300,7 @@ _Nodes with versions lower than 1.6.15 bounce a degraded version of the head, on ...@@ -299,6 +300,7 @@ _Nodes with versions lower than 1.6.15 bounce a degraded version of the head, on
API := field indicating the network layer type and giving some information about the Network configuration. (See section "API field" for details) API := field indicating the network layer type and giving some information about the Network configuration. (See section "API field" for details)
MESSAGE_TYPE = `HEAD` MESSAGE_TYPE = `HEAD`
HEAD_VERSION = 2
PUBKEY := public key of the issuer node of this head PUBKEY := public key of the issuer node of this head
BLOCKSTAMP = `blockNumber-Hash` BLOCKSTAMP = `blockNumber-Hash`
WS2PID := unique identifier of the ws2p endpoint WS2PID := unique identifier of the ws2p endpoint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment