Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RFCs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documents
RFCs
Commits
8782ce8c
Commit
8782ce8c
authored
5 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] RFC 0004 WS2Pv1: fix HeadV1 & HeadV2 bad documentation
parent
03039b2e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rfc/0004_ws2p_v1.md
+8
-6
8 additions, 6 deletions
rfc/0004_ws2p_v1.md
with
8 additions
and
6 deletions
rfc/0004_ws2p_v1.md
+
8
−
6
View file @
8782ce8c
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment