arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v3-pq/figures/src/state-tree-v3.mmd
v3-pq/figures/src/state-tree-v3.mmdRaw
 1flowchart TD
 2  classDef root fill:#fff2cc,stroke:#d6b656;
 3  classDef cfg fill:#dae8fc,stroke:#6c8ebf;
 4  classDef ns fill:#d5e8d4,stroke:#82b366;
 5  classDef nul fill:#ffe6cc,stroke:#d79b00;
 6  R["stateRoot — SHA-256 SMT, depth 64 (as v2)"]:::root
 7  R --> C["config namespace 0x0..0xF"]:::cfg
 8  R --> SL["ballot slot namespace<br/>opaque chained leaves:<br/>vote/overwrite: H(pkgDigest, s_batch)<br/>refresh: H(previous leaf, s_batch)"]:::ns
 9  R --> V["voteID namespace<br/>voteID maps to pkgDigest<br/>(v2 stored 0 — v3 authenticates<br/>the full admitted package)"]:::ns
10  C --> C3["0x3: H(wardenSet)<br/>ν, θ, epoch, ML-KEM pk hashes<br/>(replaces the election key)"]:::cfg
11  C --> C4["0x4: H(A)<br/>accumulator digest<br/>(full A published per batch)"]:::cfg
12  C --> C5["0x5: nullifier tree root"]:::cfg
13  C5 --> N["nullifier SMT — SHA-256, depth 256<br/>key = PRF(sk_voter, pkgDigest)<br/>insert-once = one-live-chain"]:::nul