mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-07 22:44:07 -05:00
Night owls had a hard time reading the diagrams included in these specs. A white background ensures that all text is readable in dark mode as well.
39 lines
831 B
Plaintext
39 lines
831 B
Plaintext
@startuml
|
|
|
|
skinparam backgroundColor white
|
|
|
|
entity Initiator
|
|
entity Responder
|
|
|
|
== Initial multistream handshake ==
|
|
|
|
Responder -> Initiator: /multistream/1.0.0
|
|
Initiator -> Responder: /multistream/1.0.0
|
|
|
|
== Negotiate security protocol ==
|
|
|
|
Initiator -> Responder: /tls/1.0.0
|
|
note left: Initiator proposes TLS for security
|
|
|
|
Responder -> Initiator: na
|
|
note right: Responder does not support TLS yet
|
|
|
|
Initiator -> Responder: /noise
|
|
note left: Initiator falls back to Noise
|
|
|
|
Responder -> Initiator: /noise
|
|
note right: Responder supports Noise, echoes back protocol id
|
|
|
|
... Noise handshake ...
|
|
|
|
== Negotiate stream multiplexer ==
|
|
|
|
Initiator -> Responder: /mplex/1.0.0
|
|
note left: Initiator proposes mplex for stream multiplexing
|
|
|
|
Responder -> Initiator: /mplex/1.0.0
|
|
note right: Responder supports mplex, echoes back protocol id
|
|
|
|
|
|
@enduml
|