File tree Expand file tree Collapse file tree 3 files changed +126
-26
lines changed
Expand file tree Collapse file tree 3 files changed +126
-26
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments