forked from rllola/doge-payment-channel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDIAGRAM.txt
30 lines (25 loc) · 1.18 KB
/
DIAGRAM.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Payment channel diagram
Alice is a client who want to open a payment channel with Bob the merchant.
[ Alice ] [ Bob ]
| |
|--- Initiate PC ------------------->|
|<---------------- Return address ---|
| |
| |
**Serialize |
& broadcast multisig** **Identify multisig on the chain and the locktime**
| |
|----- send partially sign tx1 |
| to buy object 1 --------->| /!/ Don't broacast yet (but can sign it)
|<---------------------- Success! ---|
////// |
Offline |
////// |
| |
|---- send partially sign tx2 |
| to buy object 2 -------->|
|<---------------------- Success! ---|
| |
| **Sign tx2 and brocast it**
PC now closed
PC: "Payment Channel"