aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-lwm/img/mtp.tex
blob: a62b33330f0fcc6cae6c816d2e6b19777bb8b8fe (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
\begin{tikzpicture}[
  sibling distance=32pt,
  -latex,
  apnode/.style = {
    draw=black,
    dashed,
  },
  ap/.style = {
    draw=black,
    dashed,
  },
]
  \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}