diff --git a/http/peer-id-auth.md b/http/peer-id-auth.md index 4cf865201..b378dc269 100644 --- a/http/peer-id-auth.md +++ b/http/peer-id-auth.md @@ -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 | | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | @@ -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