davinci-paper/v2/figures/state-tree.drawio
v2/figures/state-tree.drawioRaw
1<mxfile host="drawio"><diagram name="state-tree" id="state-tree"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="4" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c3" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="0" y="22" as="sourcePoint"/><mxPoint x="650" y="22" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c4" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="0" y="18" as="sourcePoint"/><mxPoint x="0" y="26" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c5" value="0" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="0" y="2" width="60" height="14" as="geometry"/></mxCell><mxCell id="c6" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="172" y="18" as="sourcePoint"/><mxPoint x="172" y="26" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c7" value="0x10" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=center;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="142" y="2" width="60" height="14" as="geometry"/></mxCell><mxCell id="c8" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="420" y="18" as="sourcePoint"/><mxPoint x="420" y="26" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c9" value='2<sup style="line-height:0">63</sup>' style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=center;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="390" y="2" width="60" height="14" as="geometry"/></mxCell><mxCell id="c10" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="650" y="18" as="sourcePoint"/><mxPoint x="650" y="26" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c11" value='2<sup style="line-height:0">64</sup>' style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=right;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="590" y="2" width="60" height="14" as="geometry"/></mxCell><mxCell id="c12" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="291.0" y="17" width="10" height="10" as="geometry"/></mxCell><mxCell id="c13" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="292.0" y="27" as="sourcePoint"/><mxPoint x="296.0" y="17" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c14" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="298.0" y="27" as="sourcePoint"/><mxPoint x="302.0" y="17" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c15" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="530.0" y="17" width="10" height="10" as="geometry"/></mxCell><mxCell id="c16" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="531.0" y="27" as="sourcePoint"/><mxPoint x="535.0" y="17" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c17" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#666666;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="537.0" y="27" as="sourcePoint"/><mxPoint x="541.0" y="17" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c18" value="<b>configuration</b><br>16 keys" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="0" y="32" width="172" height="40" as="geometry"/></mxCell><mxCell id="c19" value="<b>encrypted ballots</b><br>one slot per voter" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="172" y="32" width="248" height="40" as="geometry"/></mxCell><mxCell id="c20" value="<b>vote identifiers</b><br>one per ballot cast" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="420" y="32" width="230" height="40" as="geometry"/></mxCell><mxCell id="c21" value='<font face="Courier New">0x0</font> processID<br><font face="Courier New">0x2</font> ballotMode<br><font face="Courier New">0x3</font> H(encryptionKey)<br><font face="Courier New">0x4</font> H(encrypted results)<br><font face="Courier New">0x6</font> censusOrigin<br><font face="Courier New">0x7</font> ballotVKHash<br><font color="#666666">other keys reserved</font>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="0" y="72" width="172" height="124" as="geometry"/></mxCell><mxCell id="c22" value='<b>key</b> = slot<br>Merkle census: 0x10 + (h mod (2<sup style="line-height:0">63</sup> &minus; 16)),<br>&nbsp;&nbsp;h = first 8 bytes of<br>&nbsp;&nbsp;H(&quot;davinci-slot-v1&quot; &#8214; address)<br>CSP census: 0x10 + index<br><b>value</b> = H(re-encrypted ballot)<br><font color="#666666">written by votes and overwrites,<br>refreshed by silent re-encryptions</font>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="172" y="72" width="248" height="124" as="geometry"/></mxCell><mxCell id="c23" value='<b>key</b> = voteID = 2<sup style="line-height:0">63</sup> + (v mod 2<sup style="line-height:0">63</sup>),<br>&nbsp;&nbsp;v = Poseidon(processID, address, k)<br><b>value</b> = 0<br><font color="#666666">insert-only: a vote identifier is never<br>reused; it lets a voter check that the<br>ballot was recorded without<br>revealing its slot</font>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="420" y="72" width="230" height="124" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>