settlement_layer.tex (1647B)
1 \begin{tikzpicture}[ 2 rect/.style={rectangle, draw=black, minimum width=30mm}, 3 sym/.style={stealth-stealth, shorten >= 2pt, shorten <= 2pt}, 4 block/.style={rectangle,draw=black,fill=black!10,minimum size=7mm}, 5 ] 6 7 %% Architecture 8 \node(Tt){Taler}; 9 \node[rect,below=0cm of Tt](Tc){Exchange}; 10 \node[rect,fit={(Tt) (Tc)}](T){}; 11 12 \node[rect,below=7mm of Tc](D) {\textbf{Depolymerization}}; 13 14 \node[rect,below=7mm of D](Bc){Node}; 15 \node[below=0cm of Bc](Bt){Blockchain}; 16 \node[rect,fit={(Bt) (Bc)}](B){}; 17 18 \draw[sym] (T) -- (D); 19 \draw[sym] (D) -- (B); 20 21 %% Blockchain 22 \node[block,right=7mm of B] (1){}; 23 \node[block,right=5mm of 1] (2){}; 24 %\node[block,right=4mm of 2] (3){}; 25 %\node[block,right=4mm of 3] (4){}; 26 %\node[block,right=4mm of 4] (5){}; 27 \node[block,right=5mm of 2] (5){}; 28 \node[block,right=5mm of 5] (6){}; 29 \draw[-stealth] (1) -- (2); 30 % \draw[-stealth] (2) -- (3); 31 % \draw[-stealth] (3) -- (4); 32 % \draw[-stealth] (4) -- (5); 33 \draw[-stealth] (2) -- (5); 34 \draw[-stealth] (5) -- (6); 35 36 \node[left=4mm of 1] (S){}; 37 \node[right=4mm of 6] (E){}; 38 \draw[-stealth] (S) -- (1); 39 \draw[-stealth] (6) -- (E); 40 41 %% Taler 42 \node[block, below right=-7.5mm and 11.75mm of T] (off){Off-chain transactions}; 43 \node[above=-0.5mm of off] {\includegraphics[height=7mm]{media/taler.png}}; 44 45 %% Depolymerization 46 \node[right=12mm of D] {\small{Credit}}; 47 \node[right=38.5mm of D] {\small{Debit}}; 48 \draw[dashed,-stealth] (1.north) |- (off.west); 49 \draw[dashed,-stealth] (off.east) -| (6.north); 50 \end{tikzpicture}