davinci-paper/v2/figures/ballot-mode-packing.drawio
v2/figures/ballot-mode-packing.drawioRaw
1<mxfile host="drawio"><diagram name="ballot-mode-packing" id="ballot-mode-packing"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" 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="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1112" height="130" as="geometry"/></mxCell><mxCell id="c4" value="<b>numFields</b><br><font style='font-size:9px'>8 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="76" height="40" as="geometry"/></mxCell><mxCell id="c5" value="0" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="10" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c6" value="<b>groupSize</b><br><font style='font-size:9px'>8 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="96" y="40" width="76" height="40" as="geometry"/></mxCell><mxCell id="c7" value="8" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="86" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c8" value="<b>unique</b><br><font style='font-size:9px'>1 bit</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="172" y="40" width="56" height="40" as="geometry"/></mxCell><mxCell id="c9" value="16" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="162" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c10" value="<b>costExp.</b><br><font style='font-size:9px'>8 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="228" y="40" width="66" height="40" as="geometry"/></mxCell><mxCell id="c11" value="17" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="218" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c12" value="<b>maxValue</b><br><font style='font-size:9px'>48 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="294" y="40" width="172.8" height="40" as="geometry"/></mxCell><mxCell id="c13" value="25" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="284" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c14" value="<b>minValue</b><br><font style='font-size:9px'>48 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="466.8" y="40" width="172.8" height="40" as="geometry"/></mxCell><mxCell id="c15" value="73" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="456.8" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c16" value="<b>maxValueSum</b><br><font style='font-size:9px'>63 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="639.6" y="40" width="226.8" height="40" as="geometry"/></mxCell><mxCell id="c17" value="121" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="629.6" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c18" value="<b>minValueSum</b><br><font style='font-size:9px'>63 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="866.4000000000001" y="40" width="226.8" height="40" as="geometry"/></mxCell><mxCell id="c19" value="184" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="856.4000000000001" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c20" value="247" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="1073.2" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c21" value="<b>packed ballot mode</b> (state leaf 0x02 and ballot circuit input): one integer below 2<sup>247</sup>, fields from the least significant bit" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="8" width="960" height="24" as="geometry"/></mxCell><mxCell id="c22" value="registry checks at creation: 1 &le; numFields &le; 16, groupSize &le; numFields, minValue &le; maxValue, minValueSum &le; maxValueSum, maxValue &middot; maxVoters &le; 10<sup>12</sup>" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="102" width="960" height="22" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>