Commit 7841bbdd authored by Éloïs's avatar Éloïs
Browse files

[fix] inaccuracies on ACK and OK message signatures.

parent 9c5c461a
......@@ -148,7 +148,9 @@ sig: ed25519 signature of the RAW format message in base64.
raw format : `WS2P:ACK:currency_name:pub:challenge`
_*The challenge is the one we have written in our own CONNECT message.
_\*The ACK message is signed with the challenge of the other one.
So your ACK message is signed with the challenge given by the remote node in its CONNECT message,
and its ACK message is signed with the challenge you gave it in your CONNECT message.
The challenge is not retransmitted in json format of ACK messages because the remote node is supposed to already have this information._
### OK message
......@@ -164,7 +166,7 @@ sig: ed25519 signature of the RAW format message in base64.
raw format : `WS2P:OK:currency_name:pub:challenge`
_**Be careful**, this time the challenge is the one that **the remote node sent us** in **its own CONNECT message**.
_**Be careful**, this time each one signs his message OK with his own challenge that he sent in his message CONNECT.
The challenge is not retransmitted in json format of OK messages because the remote node is supposed to already have this information._
## Rules for accepting an incoming connection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment