aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-lwm/img/mt.tex
blob: 984da1446aeb6be8ea611704dd8df2521fbe3f20 (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
\begin{tikzpicture}[
  sibling distance=32pt,
  -latex,
  apnode/.style = {
    draw=none,
  },
  ap/.style = {
    draw=black,
  },
]
  \Tree [
    .$r\gets\hash(h_{ab}\concat h_{cd})$ [
      .\node[apnode]{$h_{ab}\gets\hash(h_a\concat h_b)$}; [
        .$h_a\gets\hash(a)$
      ] [
        .$h_b\gets\hash(b)$
      ]
    ] \edge[ap]; [
      .$h_{cd}\gets\hash(h_c\concat h_d)$ [
        .\node[apnode]{$h_c\gets\hash(c)$};
      ] \edge[ap]; [
        .$h_d\gets\hash(d)$
      ]
    ]
  ]   
\end{tikzpicture}