withdraw.tex (1842B)
1 \begin{SCfigure} 2 \begin{minipage}[b]{0.45\linewidth} 3 \begin{tikzpicture}[scale = 0.4, 4 transform shape, 5 msglabel/.style = { text = Black, yshift = .3cm, 6 sloped, midway }, 7 okmsg/.style = { ->, color = MidnightBlue, thick, 8 >=stealth }, 9 rstmsg/.style = { ->, color = BrickRed, thick, 10 >=stealth } 11 ] 12 \node[draw = MidnightBlue, 13 fill = CornflowerBlue, 14 minimum width = .3cm, 15 minimum height = 10cm 16 ] (h1) at (-4, 0) {}; 17 \node[draw = MidnightBlue, 18 fill = CornflowerBlue, 19 minimum width = .3cm, 20 minimum height = 10cm 21 ] (h2) at (4, 0) {}; 22 \node[above = 0cm of h1] {Wallet}; 23 \node[above = 0cm of h2] {Exchange}; 24 25 \path[->, color = MidnightBlue, very thick, >=stealth] 26 (-5, 4.5) edge 27 node[rotate=90, text = Black, yshift = .3cm] {Time} 28 (-5, -4.5); 29 \path[okmsg, dashed] 30 ($(h1.east)+(0, 4.0)+(0, -1.0)$) edge 31 node[msglabel] {SEPA(RK,A)} 32 ($(h2.west)+(0, 3.5)+(0, -1.0)$); 33 \path[okmsg] 34 ($(h1.east)+(0, -1.0)$) edge 35 node[msglabel] {$S_{RK}(DK, B_b(C))$} 36 ($(h2.west)+(0, -1.5)$); 37 \path[okmsg] 38 ($(h2.west)+(0, -2.0)$) edge 39 node[msglabel] {200 OK: $S_{DK}(B_b(C))$)} 40 ($(h1.east)+(0, -2.5)$); 41 \path[rstmsg] 42 ($(h2.west)+(0, -3.5)$) edge 43 node[msglabel] {402 PAYMENT REQUIRED: $S_{RK}(DK, B_b(C))$)} 44 ($(h1.east)+(0, -4)$); 45 \node at (5.3, 0) {}; 46 \end{tikzpicture} 47 \end{minipage} 48 \end{SCfigure} 49