summaryrefslogtreecommitdiff
path: root/contrib/articles/ui/figs/contract.pml
blob: 74bf23dd6aefd65b4b6f5d38f04d675475b775fc (plain)
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
31

@startuml

hide footbox

box "User"
  Participant "Wallet" as W
  Participant "Browser" as U
end box

box "Merchant"
  Participant "Storefront" as S
  Participant "Backend" as B
end box

autonumber

S -> B : proposed contract 
B -> S : signed contract 

S -> U : custom (HTTP(S))

U -> W : signed contract
W -> U : signed coins

U -> S : custom (HTTP(S))

S -> B : signed coins (HTTP(S))
B -> S : confirmation (HTTP(S))

@enduml