Skip to content

Commit 9fe4461

Browse files
committed
Render sequence diagram from included mermaid source
1 parent 8d66a06 commit 9fe4461

File tree

3 files changed

+126
-26
lines changed

3 files changed

+126
-26
lines changed

bip-0077.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -112,32 +112,8 @@ temporary disconnections and resume communication by polling.
112112

113113
### Async Payjoin Directory Mediated Sequence Diagram
114114

115-
```text
116-
+----------+ +------------+ +----------+ +----------+
117-
| Receiver | | Directory | | Sender | | Network |
118-
+----+-----+ +-----+------+ +----+-----+ +----+-----+
119-
| | | |
120-
| Payjoin URI (BIP21), out-of-band | |
121-
+------------------------------------------------>| |
122-
| | | |
123-
| Poll GET: original PSBT (repeat until available) |
124-
+- - - - - - - - - - - ->+ | |
125-
| # POST: original PSBT | |
126-
| #<-----------------------+ |
127-
| 200 OK: original PSBT # | |
128-
|<-----------------------+ | |
129-
| | | |
130-
| | Poll GET: proposal PSBT (repeat until available)
131-
| +<- - - - - - - - - - - -+ |
132-
| POST: proposal PSBT # | |
133-
+-----------------------># | |
134-
| # 200 OK: proposal PSBT | |
135-
| +----------------------->| |
136-
| | | |
137-
| | | Broadcast payjoin |
138-
| | +---------------------->|
139-
| | | |
140-
```
115+
<!-- Source: bip-0077/sequence-diagram.mermaid -->
116+
![Async Payjoin Sequence Diagram](bip-0077/sequence-diagram.svg)
141117

142118
## Specification
143119

bip-0077/sequence-diagram.mermaid

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sequenceDiagram
2+
title Async Payjoin Sequence Diagram
3+
participant R as Receiver
4+
participant D as Directory
5+
participant S as Sender
6+
participant N as Network
7+
8+
R-)S: Payjoin URI (BIP 21) out of band
9+
10+
R-->>D: Poll GET Requests<br/>for Original PSBT
11+
activate D
12+
S->>D: POST Request<br/>Original PSBT
13+
D->>R: GET Response<br/>Original PSBT
14+
deactivate D
15+
16+
S-->>D: Poll GET Requests<br/>for Proposal PSBT
17+
activate D
18+
R->>D: POST Request<br/>Proposal PSBT
19+
D->>S: GET Response<br/>Proposal PSBT
20+
deactivate D
21+
22+
S->>N: Broadcast Payjoin

bip-0077/sequence-diagram.svg

Lines changed: 102 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)