--- config: theme: neutral --- flowchart TB subgraph s1[" "] NInt[" "] n1[" "] EB["encrypted ballots [...]"] V["bool"] end subgraph s2[" "] SI1[" "] SIA[" "] SIB[" "] P0["processID"] P1["censusRoot"] P2["ballotMode"] P3["encryptionKey"] P4["resultsAdd"] P5["resultsSub"] end Root["stateRoot"] --> NInt & n1 & SI1 & SIA & SIB SI1 -- 0x0 --> P0 SI1 -- 0x1 --> P1 SIA -- 0x2 --> P2 SIA -- 0x3 --> P3 SIB -- 0x4 --> P4 SIB -- 0x5 --> P5 NInt -- addresses --> EB n1 -- voteIDs --> V n2[" "] n1@{ shape: rect} n2@{ shape: text} NInt:::internal n1:::internal EB:::leaf V:::leaf V:::empty SI1:::internal SIA:::internal SIB:::internal P0:::leaf P1:::leaf P2:::leaf P3:::leaf P4:::leaf P5:::leaf Root:::internal classDef internal fill:#f8f,stroke:#333,stroke-width:2px classDef leaf fill:#bbf,stroke:#333,stroke-width:1px classDef empty fill:#eee, stroke:#999,# stroke-dasharray:5 5