arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v2/figures/smart-contracts.drawio
v2/figures/smart-contracts.drawioRaw
1<mxfile host="drawio"><diagram name="smart-contracts" id="smart-contracts"><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="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Helvetica;verticalAlign=top;align=left;spacingTop=4;spacingLeft=8;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="650" height="436" as="geometry"/></mxCell><mxCell id="c4" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiA0MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEzIDIgTDI0IDIwIEwxMyAyNiBMMiAyMCBaIi8+PHBhdGggZD0iTTEzIDIgTDEzIDI2Ii8+PHBhdGggZD0iTTIgMjAgTDEzIDE1IEwyNCAyMCIvPjxwYXRoIGQ9Ik0yIDIzIEwxMyAzOCBMMjQgMjMgTDEzIDI5IFoiLz48L2c+PC9zdmc+;" vertex="1" parent="1"><mxGeometry x="10" y="7" width="11" height="18" as="geometry"/></mxCell><mxCell id="c5" value="&lt;b&gt;settlement chain&lt;/b&gt;  (Ethereum, or an OP Stack rollup in L1-blob mode)" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#000000;spacing=0;" vertex="1" parent="1"><mxGeometry x="26" y="8" width="560" height="16" as="geometry"/></mxCell><mxCell id="c6" value='&lt;b&gt;ZiskVerifier&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;PlonK proofs, BN254&lt;/font&gt;' 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="25" y="36" width="132" height="56" as="geometry"/></mxCell><mxCell id="c7" value='&lt;b&gt;point evaluation&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;precompile 0x0A&lt;/font&gt;' 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="181" y="36" width="132" height="56" as="geometry"/></mxCell><mxCell id="c8" value='&lt;b&gt;L1BlobVerifier&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;L1 headers, MPT proofs&lt;/font&gt;' 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;dashed=1;" vertex="1" parent="1"><mxGeometry x="337" y="36" width="132" height="56" as="geometry"/></mxCell><mxCell id="c9" value='&lt;b&gt;L1Block&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;OP predeploy, L1 origin&lt;/font&gt;' 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;dashed=1;" vertex="1" parent="1"><mxGeometry x="493" y="36" width="132" height="56" as="geometry"/></mxCell><mxCell id="c10" value="&lt;b&gt;ProcessRegistry&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="25" y="124" width="444" height="140" as="geometry"/></mxCell><mxCell id="c11" value="&lt;b&gt;per process&lt;/b&gt;&lt;br&gt;status, times, grace window,&lt;br&gt;ballot mode, census,&lt;br&gt;encryption key, key mode,&lt;br&gt;latest state root, counters,&lt;br&gt;results" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=top;fontColor=#000000;spacing=0;" vertex="1" parent="1"><mxGeometry x="41" y="152" width="190" height="84" as="geometry"/></mxCell><mxCell id="c12" value='&lt;b&gt;functions&lt;/b&gt;&lt;br&gt;&lt;font face="Courier New"&gt;newProcess&lt;br&gt;setProcess&amp;lt;field&amp;gt;&lt;br&gt;submitStateTransition[L1]&lt;br&gt;setProcessResults&lt;br&gt;requestResultsDecryption&lt;br&gt;finalizeResultsFromDKG&lt;br&gt;revealProcessKey&lt;/font&gt;' style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=top;fontColor=#000000;spacing=0;" vertex="1" parent="1"><mxGeometry x="273" y="152" width="210" height="84" as="geometry"/></mxCell><mxCell id="c13" value='&lt;b&gt;census contract&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;&lt;font face="Courier New"&gt;ICensusValidator&lt;/font&gt;,&lt;br&gt;on-chain census&lt;/font&gt;' 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;dashed=1;" vertex="1" parent="1"><mxGeometry x="493" y="162" width="132" height="64" as="geometry"/></mxCell><mxCell id="c14" value="key management" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=none;strokeColor=#666666;fontFamily=Helvetica;verticalAlign=top;align=left;spacingTop=4;spacingLeft=8;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="12" y="300" width="626" height="124" as="geometry"/></mxCell><mxCell id="c15" value='&lt;b&gt;DavinciDKGAdapter&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;register, submit,&lt;br&gt;read plaintexts&lt;/font&gt;' 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="181" y="340" width="132" height="72" as="geometry"/></mxCell><mxCell id="c16" value='&lt;b&gt;davinci-dkg&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;DKGManager&lt;br&gt;DKGRegistry&lt;br&gt;DKGAppManager&lt;/font&gt;' 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="25" y="340" width="132" height="72" as="geometry"/></mxCell><mxCell id="c17" value='&lt;b&gt;CouncilAdapter&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;register, submit,&lt;br&gt;read plaintexts&lt;/font&gt;' 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="337" y="340" width="132" height="72" as="geometry"/></mxCell><mxCell id="c18" value='&lt;b&gt;CouncilManager&lt;/b&gt;&lt;br&gt;&lt;font style="font-size:10px" color="#333333"&gt;invite-only ceremonies,&lt;br&gt;partial decryptions&lt;/font&gt;' 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="493" y="340" width="132" height="72" as="geometry"/></mxCell><mxCell id="c19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.1486;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c7"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=0.8514;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c9"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.8514;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c17"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c17" target="c18"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>