davinci-paper/v2/figures/circuits-flow.drawio
v2/figures/circuits-flow.drawioRaw
1<mxfile host="drawio"><diagram name="circuits-flow" id="circuits-flow"><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="VOTER" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="280" height="270" as="geometry"/></mxCell><mxCell id="c4" value="SEQUENCER" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="330" y="0" width="300" height="270" as="geometry"/></mxCell><mxCell id="c5" value="SETTLEMENT CHAIN" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;dashed=1;" vertex="1" parent="1"><mxGeometry x="680" y="0" width="240" height="270" as="geometry"/></mxCell><mxCell id="c6" value="<b>Ballot circuit</b><br><div style='text-align:left;margin-top:6px;line-height:1.45'>&bull; <b>proof system:</b> Groth16<br>&bull; <b>elliptic curve:</b> BN254<br>&bull; <b>software:</b> circom</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="25" y="70" width="230" height="96" as="geometry"/></mxCell><mxCell id="c7" value="1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="17" y="62" width="18" height="16" as="geometry"/></mxCell><mxCell id="c8" value="<b>Batch program</b><br><div style='text-align:left;margin-top:6px;line-height:1.45'>&bull; <b>proof system:</b> STARK + PlonK<br>&bull; <b>zkVM:</b> ZisK (RISC-V)<br>&bull; <b>software:</b> Rust</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="365" y="40" width="230" height="96" as="geometry"/></mxCell><mxCell id="c9" value="2" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="357" y="32" width="18" height="16" as="geometry"/></mxCell><mxCell id="c10" value="<b>Results program</b><br><div style='text-align:left;margin-top:6px;line-height:1.45'>&bull; <b>proof system:</b> STARK + PlonK<br>&bull; <b>zkVM:</b> ZisK (RISC-V)<br>&bull; <b>used:</b> sequencer-held keys</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="365" y="160" width="230" height="96" as="geometry"/></mxCell><mxCell id="c11" value="3" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="357" y="152" width="18" height="16" as="geometry"/></mxCell><mxCell id="c12" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="705" y="70" width="190" height="130" as="geometry"/></mxCell><mxCell id="c13" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiA0MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEzIDIgTDI0IDIwIEwxMyAyNiBMMiAyMCBaIi8+PHBhdGggZD0iTTEzIDIgTDEzIDI2Ii8+PHBhdGggZD0iTTIgMjAgTDEzIDE1IEwyNCAyMCIvPjxwYXRoIGQ9Ik0yIDIzIEwxMyAzOCBMMjQgMjMgTDEzIDI5IFoiLz48L2c+PC9zdmc+;" vertex="1" parent="1"><mxGeometry x="788" y="82" width="16" height="24" as="geometry"/></mxCell><mxCell id="c14" value="<b>ProcessRegistry</b><br>verifies proofs with<br>the ZiskVerifier and<br>blob openings" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="705" y="110" width="190" height="80" as="geometry"/></mxCell><mxCell id="c15" value="ballot<br>proof" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.3;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c16" value="batch proof,<br>blobs" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c17" value="results<br>proof" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.8;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" value="one proof per ballot,<br>verified in batches<br>inside the batch program" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="25" y="186" width="230" height="70" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>