triangle-taler.tex (1816B)
1 \documentclass{standalone} 2 \usepackage{tikz} 3 \usepackage{ragged2e} 4 \usetikzlibrary{positioning,fit,patterns} 5 6 \begin{document} 7 \begin{tikzpicture}[ 8 rect/.style={circle, draw=black}, 9 sym/.style={-stealth, shorten >= 2pt, shorten <= 2pt} 10 ] 11 % Taler payment system 12 \node[rect](1) {Exchange}; 13 \node[rect,below left=1.5cm and 0.7cm of 1](2) 14 {\small Utilisateur}; 15 \node[rect,below right=1.5cm and 0.7cm of 1](3) {Marchand}; 16 17 \draw[sym] (1) -- node [midway, above, sloped] {\tiny 18 Retire des jetons} (2); 19 \draw[sym] (2) -- node [midway, above, sloped] {\tiny 20 Dépense des jetons} (3); 21 \draw[sym] (3) -- node [midway, above, sloped] {\tiny 22 Dépose des jetons} (1); 23 24 % Settlement layer 25 \node[left=2cm of 1](E1){}; 26 \node[right=2cm of 1](E2){}; 27 \draw[sym] (E1) -- node [midway, above] {\tiny Dépose BTC/ETH} (1); 28 \draw[sym] (1) -- node [midway, above] {\tiny Retire BTC/ETH} (E2); 29 30 % Auditor 31 %\node[above= of 1](A){Auditor}; 32 %\draw[sym] (A) -- node [midway, right] {\tiny Verify} (1); 33 34 % Separator 35 \node[below=1mm of E1] (S1S) {}; 36 \node[below=1mm of E2] (S1E) {}; 37 \node[above=6mm of E1] (S2S) {}; 38 \node[above=6mm of E2] (S2E) {}; 39 40 \draw[dotted] (S1S) -- (S1E); 41 \draw[dotted] (S2S) -- (S2E); 42 43 \node[below right=-2mm and -1.5mm of S2S] 44 {\tiny{\emph{Couche de liaison avec la blockchain}}}; 45 \node[below right=-2mm and -1.5mm of S1S] 46 {\tiny{\emph{Système de paiements Taler}}}; 47 \end{tikzpicture} 48 \end{document}