arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v2/figures/mt-state-mermaid.mmd
v2/figures/mt-state-mermaid.mmdRaw
 1---
 2config:
 3  theme: neutral
 4---
 5flowchart TB
 6 subgraph s1[" "]
 7        NInt[" "]
 8        n1[" "]
 9        EB["encrypted ballots [...]"]
10        V["bool"]
11  end
12 subgraph s2[" "]
13        SI1[" "]
14        SIA[" "]
15        SIB[" "]
16        P0["processID"]
17        P1["censusOrigin"]
18        P2["ballotMode"]
19        P3["encryptionKey"]
20        P4["resultsAdd"]
21        P5["resultsSub"]
22  end
23    Root["stateRoot"] --> NInt & n1 & SI1 & SIA & SIB
24    SI1 -- 0x0 --> P0
25    SI1 -- 0x1 --> P1
26    SIA -- 0x2 --> P2
27    SIA -- 0x3 --> P3
28    SIB -- 0x4 --> P4
29    SIB -- 0x5 --> P5
30    NInt -- encPath --> EB
31    n1 -- voteID --> V
32    n2[" "]
33    n1@{ shape: rect}
34    n2@{ shape: text}
35     NInt:::internal
36     n1:::internal
37     EB:::leaf
38     V:::leaf
39     V:::empty
40     SI1:::internal
41     SIA:::internal
42     SIB:::internal
43     P0:::leaf
44     P1:::leaf
45     P2:::leaf
46     P3:::leaf
47     P4:::leaf
48     P5:::leaf
49     Root:::internal
50    classDef internal fill:#f8f,stroke:#333,stroke-width:2px
51    classDef leaf     fill:#bbf,stroke:#333,stroke-width:1px
52    classDef empty    fill:#eee, stroke:#999,# stroke-dasharray:5 5