使用mermaid描述 raiden
通道 AB,正常状态
graph LR
A-- 60,100,S_100 ---B
通道 AB closed
graph LR
A((A)) -. 60,100 .- B((B))
通道 ABCD
graph LR
A((A))
A--60,100 ---B
B-- 50,50 ---C
B--20,30 ---D
交易 A-B-C
sequenceDiagram
participant A as Alice
participant B as Bob
participant C as Charle
A->>B: MTR,expiration=3000,H(secret)=333
B->>C: MTR,expiration=3000
Note right of B: exiration should less than 3000
Note over A,C: secret should be the same
C->>A: Secret Request
A->>C: Reveal Secret
C->>B: Reveal Secret
B->>C: Unlock
B->>A: Reveal Secret
A->>B: Unlock