flowchart LR classDef pkg fill:#d5e8d4,stroke:#82b366; classDef slot fill:#fff2cc,stroke:#d6b656; classDef chk fill:#dae8fc,stroke:#6c8ebf; classDef pub fill:#f5f5f5,stroke:#999999; P0["first package P0
(fresh randomness)"]:::pkg -->|"first write"| T1["slot vector T = E(P0) + Z + M"]:::slot T1 -->|"refresh (any sequencer)"| T2["T' = T + Z' + M'"]:::slot T2 -->|"revote: fresh package P1
(no reference to P0 needed)"| T3["T'' = E(P1) + Z'' + M''"]:::slot O["public record per touched slot:
slot index + new vector —
IDENTICAL for refresh and overwrite"]:::pub T2 --- O T3 --- O subgraph STARK["checked in the voter's ballot STARK (same statement, first vote or revote)"] S1["valid ballot, shares, masks,
commitments, voteID, identity"]:::chk end subgraph BATCH["checked by the batch program"] B1["census join: this voter owns this slot"]:::chk B2["at most 1 real ballot per slot per batch"]:::chk B3["accumulator delta = sum of
published vector changes"]:::chk end P1x["last settled write wins — as v2"]:::pub T3 --- P1x