arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v3-pq/figures/src/revote-lifecycle.mmd
v3-pq/figures/src/revote-lifecycle.mmdRaw
 1flowchart LR
 2  classDef pkg fill:#d5e8d4,stroke:#82b366;
 3  classDef pub fill:#fff2cc,stroke:#d6b656;
 4  classDef sec fill:#f8cecc,stroke:#b85450;
 5  classDef chk fill:#dae8fc,stroke:#6c8ebf;
 6  P0["first package P0<br/>(fresh randomness)"]:::pkg --> B1["batch 7 publishes:<br/>P0 · slot s marked OCCUPIED"]:::pub
 7  P1["revote: fresh package P1<br/>(no reference to P0)"]:::pkg --> B2["batch 12 publishes:<br/>P1 · nothing about slot s"]:::pub
 8  B1 --> L1["write log of batch 7 (encrypted):<br/>P0 wrote slot s"]:::sec
 9  B2 --> L2["write log of batch 12 (encrypted):<br/>P1 wrote slot s"]:::sec
10  L1 --> T["at tally, θ wardens open the logs:<br/>slot s → its package in the<br/>highest batch = P1 (last write wins)"]:::chk
11  L2 --> T
12  O["the public sees: one more package,<br/>one more overwrite in the batch count,<br/>never which slot"]:::pub
13  B2 --- O
14  subgraph BATCH["checked by the batch program"]
15    C1["census: this voter owns slot s"]:::chk
16    C2["at most 1 ballot per slot per batch"]:::chk
17    C3["log entry = the package's slot"]:::chk
18  end