15. Payment Channel (1)
A → B micro payment
1. A 2 of 2(multisig) fund 1BTC deposite
broadcast
2. 1 txid 1 1BTC A
refund transaction
B CSV CLTV
3. 1 broadcast (channel open
16. Payment Channel (2)
4. deposite address A, B
A B
(off-chain)
deposite address => B(0.01BTC), A(0.99BTC)
deposite address => B(0.02BTC), A(0.98BTC)
…
5. B broadcast
(channel close)
24. HTLC (1)
A => C micro payment
1. A => B , B => C payment channel
2. C A r
hash(r)
generate rOpen
channel
Open
channel
25. HTLC (2)
3. A => B 1BTC tx1 (off-chain)
IF
1. B r
2. 10 A (CLTV) ※refund .
4. Tx1 B => C 1BTC tx2 (off-chain)
1. C r
2. 5 B (CTLV) ← tx1
5. C r tx2 broadcast 1BTC
r B tx1 broadcast 1BTC