Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Sep 3, 2024
1 parent e1df507 commit 189492a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion http/peer-id-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ your domain, you may be vulnerable to a mitm attack.

## 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
| Parameter | Value |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -170,7 +178,7 @@ your domain, you may be vulnerable to a mitm attack.
| Challenge Client | ERERERERERERERERERERERERERERERERERERERERERE= |
| Client Private Key (pb encoded as hex) | 0801124002020202020202020202020202020202020202020202020202020202020202028139770ea87d175f56a35466c34c7ecccb8d8a91b4ee37a25df60f5b8fc9b394 |
| 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
```mermaid
Expand Down

0 comments on commit 189492a

Please sign in to comment.