From 8782ce8ca13b1a0fb006fa16c03da498f3b0adba Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Sun, 29 Mar 2020 21:47:08 +0000 Subject: [PATCH] [fix] RFC 0004 WS2Pv1: fix HeadV1 & HeadV2 bad documentation --- rfc/0004_ws2p_v1.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/rfc/0004_ws2p_v1.md b/rfc/0004_ws2p_v1.md index 7bf802d..d530d00 100644 --- a/rfc/0004_ws2p_v1.md +++ b/rfc/0004_ws2p_v1.md @@ -249,8 +249,8 @@ Accepted since duniter-ts **v1.6.0** #### message field -API = "WS2P" -MESSAGE_TYPE = "HEAD" +API = `WS2P` +MESSAGE_TYPE = `HEAD` PUBKEY := public key of the issuer node of this head BLOCKSTAMP = `blockNumber-Hash` @@ -263,7 +263,7 @@ sig: ed25519 signature of the message field in base64. 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==") } @@ -271,6 +271,7 @@ Accepted since duniter-ts **v1.6.9** API = `WS2P` MESSAGE_TYPE = `HEAD` +HEAD_VERSION = 1 PUBKEY := public key of the issuer node of this head BLOCKSTAMP = `blockNumber-Hash` WS2PID := unique identifier of the ws2p endpoint @@ -288,17 +289,18 @@ 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._ { - "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=="), - "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=="), "step": Number(0) } #### message & messageV2 fields -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` +HEAD_VERSION = 2 PUBKEY := public key of the issuer node of this head BLOCKSTAMP = `blockNumber-Hash` WS2PID := unique identifier of the ws2p endpoint -- GitLab