This commit is contained in:
Marco Munizaga
2024-09-03 15:47:11 -07:00
parent e1df5078d1
commit 189492a0d7

View File

@@ -161,6 +161,14 @@ your domain, you may be vulnerable to a mitm attack.
## Complete Example Handshake ## Complete Example Handshake
The following is a complete and reproducible handshake. Generated by the current
implementation of this spec in go-libp2p.
Understanding the opaque value is not necessary in order to understand this
spec. Servers are free to do whatever they want with the opaque field. The
opaque value represents encoded server state authenticated with an HMAC. The
details can be found in the go-libp2p source.
### Parameters ### Parameters
| Parameter | Value | | Parameter | Value |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
@@ -170,7 +178,7 @@ your domain, you may be vulnerable to a mitm attack.
| Challenge Client | ERERERERERERERERERERERERERERERERERERERERERE= | | Challenge Client | ERERERERERERERERERERERERERERERERERERERERERE= |
| Client Private Key (pb encoded as hex) | 0801124002020202020202020202020202020202020202020202020202020202020202028139770ea87d175f56a35466c34c7ecccb8d8a91b4ee37a25df60f5b8fc9b394 | | Client Private Key (pb encoded as hex) | 0801124002020202020202020202020202020202020202020202020202020202020202028139770ea87d175f56a35466c34c7ecccb8d8a91b4ee37a25df60f5b8fc9b394 |
| Challenge Server | MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMz | | Challenge Server | MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMz |
| "Now" time | 1969-12-31 16:00:00 -0800 PST | | "Now" time | 1970-01-01 00:00:00 +0000 UTC |
### Handshake Diagram ### Handshake Diagram
```mermaid ```mermaid