arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
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&lt;sup style="line-height:0"&gt;63&lt;/sup&gt;' 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&lt;sup style="line-height:0"&gt;64&lt;/sup&gt;' 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="&lt;b&gt;configuration&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;encrypted ballots&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;vote identifiers&lt;/b&gt;&lt;br&gt;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='&lt;font face="Courier New"&gt;0x0&lt;/font&gt; processID&lt;br&gt;&lt;font face="Courier New"&gt;0x2&lt;/font&gt; ballotMode&lt;br&gt;&lt;font face="Courier New"&gt;0x3&lt;/font&gt; H(encryptionKey)&lt;br&gt;&lt;font face="Courier New"&gt;0x4&lt;/font&gt; H(encrypted results)&lt;br&gt;&lt;font face="Courier New"&gt;0x6&lt;/font&gt; censusOrigin&lt;br&gt;&lt;font face="Courier New"&gt;0x7&lt;/font&gt; ballotVKHash&lt;br&gt;&lt;font color="#666666"&gt;other keys reserved&lt;/font&gt;' 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='&lt;b&gt;key&lt;/b&gt; = slot&lt;br&gt;Merkle census: 0x10 + (h mod (2&lt;sup style="line-height:0"&gt;63&lt;/sup&gt; &amp;minus; 16)),&lt;br&gt;&amp;nbsp;&amp;nbsp;h = first 8 bytes of&lt;br&gt;&amp;nbsp;&amp;nbsp;H(&amp;quot;davinci-slot-v1&amp;quot; &amp;#8214; address)&lt;br&gt;CSP census: 0x10 + index&lt;br&gt;&lt;b&gt;value&lt;/b&gt; = H(re-encrypted ballot)&lt;br&gt;&lt;font color="#666666"&gt;written by votes and overwrites,&lt;br&gt;refreshed by silent re-encryptions&lt;/font&gt;' 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='&lt;b&gt;key&lt;/b&gt; = voteID = 2&lt;sup style="line-height:0"&gt;63&lt;/sup&gt; + (v mod 2&lt;sup style="line-height:0"&gt;63&lt;/sup&gt;),&lt;br&gt;&amp;nbsp;&amp;nbsp;v = Poseidon(processID, address, k)&lt;br&gt;&lt;b&gt;value&lt;/b&gt; = 0&lt;br&gt;&lt;font color="#666666"&gt;insert-only: a vote identifier is never&lt;br&gt;reused; it lets a voter check that the&lt;br&gt;ballot was recorded without&lt;br&gt;revealing its slot&lt;/font&gt;' 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>