From 0c40ec885645c13f1ed43f763926973835178c6e Mon Sep 17 00:00:00 2001
From: Kevin <56823591+6d7a@users.noreply.github.com>
Date: Sun, 29 May 2022 16:17:52 +0200
Subject: [PATCH] *: Set PlantUML background color to white (#419)
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.
---
connections/conn-upgrade.plantuml | 2 +
connections/conn-upgrade.svg | 14 +++---
connections/multistream.plantuml | 2 +
connections/multistream.svg | 14 +++---
relay/circuit-v2.plantuml | 30 +++++++++++++
relay/circuit-v2.svg | 71 ++++++++++++++++---------------
6 files changed, 85 insertions(+), 48 deletions(-)
create mode 100644 relay/circuit-v2.plantuml
diff --git a/connections/conn-upgrade.plantuml b/connections/conn-upgrade.plantuml
index b2d4976..f9b45e8 100644
--- a/connections/conn-upgrade.plantuml
+++ b/connections/conn-upgrade.plantuml
@@ -1,5 +1,7 @@
@startuml
+skinparam backgroundColor white
+
entity Initiator
entity Responder
diff --git a/connections/conn-upgrade.svg b/connections/conn-upgrade.svg
index 443b6d8..d55ef1a 100644
--- a/connections/conn-upgrade.svg
+++ b/connections/conn-upgrade.svg
@@ -1,5 +1,7 @@
-
\ No newline at end of file
diff --git a/connections/multistream.plantuml b/connections/multistream.plantuml
index 89b3b76..a8c2cb8 100644
--- a/connections/multistream.plantuml
+++ b/connections/multistream.plantuml
@@ -1,5 +1,7 @@
@startuml
+skinparam backgroundColor white
+
entity Initiator
entity Responder
Initiator -> Responder: Open connection
diff --git a/connections/multistream.svg b/connections/multistream.svg
index dbaddc7..72504bb 100644
--- a/connections/multistream.svg
+++ b/connections/multistream.svg
@@ -1,5 +1,6 @@
-
\ No newline at end of file
diff --git a/relay/circuit-v2.plantuml b/relay/circuit-v2.plantuml
new file mode 100644
index 0000000..c3571d7
--- /dev/null
+++ b/relay/circuit-v2.plantuml
@@ -0,0 +1,30 @@
+@startuml
+participant A
+participant R
+participant B
+
+skinparam backgroundColor white
+skinparam sequenceMessageAlign center
+
+== Reservation ==
+
+A -> R: [hop] RESERVE
+R -> A: [hop] STATUS:OK
+
+hnote over A: Reservation timeout approaching.
+hnote over A: Refresh.
+
+A -> R: [hop] RESERVE
+R -> A: [hop] STATUS:OK
+
+hnote over A: ...
+
+== Circuit Establishment ==
+
+B -> R: [hop] CONNECT to A
+R -> A: [stop] CONNECT from B
+A -> R: [stop] STATUS:OK
+R -> B: [hop] STATUS:OK
+
+B <-> A: Connection
+@enduml
\ No newline at end of file
diff --git a/relay/circuit-v2.svg b/relay/circuit-v2.svg
index 4765397..db5b522 100644
--- a/relay/circuit-v2.svg
+++ b/relay/circuit-v2.svg
@@ -1,39 +1,40 @@
-
+Default Encoding: Cp1252
+Language: de
+Country: DE
+-->
\ No newline at end of file