add v1 (from hackmd) + v2 (wip) + .gitignore
jump to
@@ -19,16 +19,10 @@ *-converted-to.*
# these rules might exclude image files for figures etc. # *.ps # *.eps -# *.pdf - -## Generated if empty string is given at "Please type another file name for output:" -.pdf ## Bibliography auxiliary files (bibtex/biblatex/biber): *.bbl -*.bbl-SAVE-ERROR *.bcf -*.bcf-SAVE-ERROR *.blg *-blx.aux *-blx.bib@@ -41,8 +35,6 @@ *.synctex(busy)
*.synctex.gz *.synctex.gz(busy) *.pdfsync -*.rubbercache -rubber.cache ## Build tool directories for auxiliary files # latexrun@@ -59,9 +51,6 @@
# amsthm *.thm -# attachfile2 -*.atfi - # beamer *.nav *.pre@@ -70,7 +59,6 @@ *.vrb
# changes *.soc -*.loc # comment *.cut@@ -119,17 +107,10 @@ *.gls
*.glsdefs *.lzo *.lzs -*.slg -*.slo -*.sls # uncomment this for glossaries-extra (will ignore makeindex's style files!) # *.ist -# gnuplot -*.gnuplot -*.table - # gnuplottex *-gnuplottex-*@@ -146,9 +127,6 @@ *.lg
*.trc *.xref -# hypdoc -*.hd - # hyperref *.brf@@ -180,7 +158,6 @@ *.stc[0-9]*
# minted _minted* -*.data.minted *.pyg # morewrites@@ -208,9 +185,6 @@
# scrwfile *.wrt -# svg -svg-inkscape/ - # sympy *.sout *.sympy@@ -234,9 +208,6 @@ # TikZ & PGF
*.dpth *.md5 *.auxlock - -# titletoc -*.ptc # todonotes *.tdo@@ -311,3 +282,6 @@ # REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
# option is specified. Footnotes are the stored in a file with suffix Notes.bib. # Uncomment the next line to have this generated file ignored. #*Notes.bib + +# others +.DS_Store
@@ -0,0 +1,1218 @@
+% LLNCS DOCUMENT CLASS -- version 2.21 (12-Jan-2022) +% Springer Verlag LaTeX2e support for Lecture Notes in Computer Science +% +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesClass{llncs}[2022/01/12 v2.21 +^^J LaTeX document class for Lecture Notes in Computer Science] +% Options +\let\if@envcntreset\iffalse +\DeclareOption{envcountreset}{\let\if@envcntreset\iftrue} +\DeclareOption{citeauthoryear}{\let\citeauthoryear=Y} +\DeclareOption{oribibl}{\let\oribibl=Y} +\let\if@custvec\iftrue +\DeclareOption{orivec}{\let\if@custvec\iffalse} +\let\if@envcntsame\iffalse +\DeclareOption{envcountsame}{\let\if@envcntsame\iftrue} +\let\if@envcntsect\iffalse +\DeclareOption{envcountsect}{\let\if@envcntsect\iftrue} +\let\if@runhead\iffalse +\DeclareOption{runningheads}{\let\if@runhead\iftrue} + +\let\if@openright\iftrue +\let\if@openbib\iffalse +\DeclareOption{openbib}{\let\if@openbib\iftrue} + +% languages +\let\switcht@@therlang\relax +\def\ds@deutsch{\def\switcht@@therlang{\switcht@deutsch}} +\def\ds@francais{\def\switcht@@therlang{\switcht@francais}} + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} + +\ProcessOptions + +\LoadClass[twoside]{article} +\RequirePackage{multicol} % needed for the list of participants, index +\RequirePackage{aliascnt} + +\setlength{\textwidth}{12.2cm} +\setlength{\textheight}{19.3cm} +\renewcommand\@pnumwidth{2em} +\renewcommand\@tocrmarg{3.5em} +% +\def\@dottedtocline#1#2#3#4#5{% + \ifnum #1>\c@tocdepth \else + \vskip \z@ \@plus.2\p@ + {\leftskip #2\relax \rightskip \@tocrmarg \advance\rightskip by 0pt plus 2cm + \parfillskip -\rightskip \pretolerance=10000 + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \@tempdima #3\relax + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + {#4}\nobreak + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% + \par}% + \fi} +% +\def\switcht@albion{% +\def\abstractname{Abstract.} +\def\ackname{Acknowledgement.} +\def\andname{and} +\def\lastandname{\unskip, and} +\def\appendixname{Appendix} +\def\chaptername{Chapter} +\def\claimname{Claim} +\def\conjecturename{Conjecture} +\def\contentsname{Table of Contents} +\def\corollaryname{Corollary} +\def\definitionname{Definition} +\def\examplename{Example} +\def\exercisename{Exercise} +\def\figurename{Fig.} +\def\keywordname{{\bf Keywords:}} +\def\indexname{Index} +\def\lemmaname{Lemma} +\def\contriblistname{List of Contributors} +\def\listfigurename{List of Figures} +\def\listtablename{List of Tables} +\def\mailname{{\it Correspondence to\/}:} +\def\noteaddname{Note added in proof} +\def\notename{Note} +\def\partname{Part} +\def\problemname{Problem} +\def\proofname{Proof} +\def\propertyname{Property} +\def\propositionname{Proposition} +\def\questionname{Question} +\def\remarkname{Remark} +\def\seename{see} +\def\solutionname{Solution} +\def\subclassname{{\it Subject Classifications\/}:} +\def\tablename{Table} +\def\theoremname{Theorem}} +\switcht@albion +% Names of theorem like environments are already defined +% but must be translated if another language is chosen +% +% French section +\def\switcht@francais{%\typeout{On parle francais.}% + \def\abstractname{R\'esum\'e.}% + \def\ackname{Remerciements.}% + \def\andname{et}% + \def\lastandname{ et}% + \def\appendixname{Appendice}% + \def\chaptername{Chapitre}% + \def\claimname{Pr\'etention}% + \def\conjecturename{Hypoth\`ese}% + \def\contentsname{Table des mati\`eres}% + \def\corollaryname{Corollaire}% + \def\definitionname{D\'efinition}% + \def\examplename{Exemple}% + \def\exercisename{Exercice}% + \def\figurename{Fig.}% + \def\keywordname{{\bf Mots-cl\'e:}}% + \def\indexname{Index}% + \def\lemmaname{Lemme}% + \def\contriblistname{Liste des contributeurs}% + \def\listfigurename{Liste des figures}% + \def\listtablename{Liste des tables}% + \def\mailname{{\it Correspondence to\/}:}% + \def\noteaddname{Note ajout\'ee \`a l'\'epreuve}% + \def\notename{Remarque}% + \def\partname{Partie}% + \def\problemname{Probl\`eme}% + \def\proofname{Preuve}% + \def\propertyname{Caract\'eristique}% +%\def\propositionname{Proposition}% + \def\questionname{Question}% + \def\remarkname{Remarque}% + \def\seename{voir}% + \def\solutionname{Solution}% + \def\subclassname{{\it Subject Classifications\/}:}% + \def\tablename{Tableau}% + \def\theoremname{Th\'eor\`eme}% +} +% +% German section +\def\switcht@deutsch{%\typeout{Man spricht deutsch.}% + \def\abstractname{Zusammenfassung.}% + \def\ackname{Danksagung.}% + \def\andname{und}% + \def\lastandname{ und}% + \def\appendixname{Anhang}% + \def\chaptername{Kapitel}% + \def\claimname{Behauptung}% + \def\conjecturename{Hypothese}% + \def\contentsname{Inhaltsverzeichnis}% + \def\corollaryname{Korollar}% +%\def\definitionname{Definition}% + \def\examplename{Beispiel}% + \def\exercisename{\"Ubung}% + \def\figurename{Abb.}% + \def\keywordname{{\bf Schl\"usselw\"orter:}}% + \def\indexname{Index}% +%\def\lemmaname{Lemma}% + \def\contriblistname{Mitarbeiter}% + \def\listfigurename{Abbildungsverzeichnis}% + \def\listtablename{Tabellenverzeichnis}% + \def\mailname{{\it Correspondence to\/}:}% + \def\noteaddname{Nachtrag}% + \def\notename{Anmerkung}% + \def\partname{Teil}% +%\def\problemname{Problem}% + \def\proofname{Beweis}% + \def\propertyname{Eigenschaft}% +%\def\propositionname{Proposition}% + \def\questionname{Frage}% + \def\remarkname{Anmerkung}% + \def\seename{siehe}% + \def\solutionname{L\"osung}% + \def\subclassname{{\it Subject Classifications\/}:}% + \def\tablename{Tabelle}% +%\def\theoremname{Theorem}% +} + +% Ragged bottom for the actual page +\def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil +\global\let\@textbottom\relax}} + +\renewcommand\small{% + \@setfontsize\small\@ixpt{11}% + \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ + \abovedisplayshortskip \z@ \@plus2\p@ + \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ + \def\@listi{\leftmargin\leftmargini + \parsep 0\p@ \@plus1\p@ \@minus\p@ + \topsep 8\p@ \@plus2\p@ \@minus4\p@ + \itemsep0\p@}% + \belowdisplayskip \abovedisplayskip +} + +\frenchspacing +\widowpenalty=10000 +\clubpenalty=10000 + +\setlength\oddsidemargin {63\p@} +\setlength\evensidemargin {63\p@} +\setlength\marginparwidth {90\p@} + +\setlength\headsep {16\p@} + +\setlength\footnotesep{7.7\p@} +\setlength\textfloatsep{8mm\@plus 2\p@ \@minus 4\p@} +\setlength\intextsep {8mm\@plus 2\p@ \@minus 2\p@} + +\setcounter{secnumdepth}{2} + +\newcounter {chapter} +\renewcommand\thechapter {\@arabic\c@chapter} + +\newif\if@mainmatter \@mainmattertrue +\newcommand\frontmatter{\cleardoublepage + \@mainmatterfalse\pagenumbering{Roman}} +\newcommand\mainmatter{\cleardoublepage + \@mainmattertrue\pagenumbering{arabic}} +\newcommand\backmatter{\if@openright\cleardoublepage\else\clearpage\fi + \@mainmatterfalse} + +\renewcommand\part{\cleardoublepage + \thispagestyle{empty}% + \if@twocolumn + \onecolumn + \@tempswatrue + \else + \@tempswafalse + \fi + \null\vfil + \secdef\@part\@spart} + +\def\@part[#1]#2{% + \ifnum \c@secnumdepth >-2\relax + \refstepcounter{part}% + \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% + \else + \addcontentsline{toc}{part}{#1}% + \fi + \markboth{}{}% + {\centering + \interlinepenalty \@M + \normalfont + \ifnum \c@secnumdepth >-2\relax + \huge\bfseries \partname~\thepart + \par + \vskip 20\p@ + \fi + \Huge \bfseries #2\par}% + \@endpart} +\def\@spart#1{% + {\centering + \interlinepenalty \@M + \normalfont + \Huge \bfseries #1\par}% + \@endpart} +\def\@endpart{\vfil\newpage + \if@twoside + \null + \thispagestyle{empty}% + \newpage + \fi + \if@tempswa + \twocolumn + \fi} + +\newcommand\chapter{\clearpage + \thispagestyle{empty}% + \global\@topnum\z@ + \@afterindentfalse + \secdef\@chapter\@schapter} +\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}#1}% + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \chaptermark{#1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \@afterheading + \fi} +\def\@makechapterhead#1{% +% \vspace*{50\p@}% + {\centering + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \large\bfseries \@chapapp{} \thechapter + \par\nobreak + \vskip 20\p@ + \fi + \fi + \interlinepenalty\@M + \Large \bfseries #1\par\nobreak + \vskip 40\p@ + }} +\def\@schapter#1{\if@twocolumn + \@topnewpage[\@makeschapterhead{#1}]% + \else + \@makeschapterhead{#1}% + \@afterheading + \fi} +\def\@makeschapterhead#1{% +% \vspace*{50\p@}% + {\centering + \normalfont + \interlinepenalty\@M + \Large \bfseries #1\par\nobreak + \vskip 40\p@ + }} + +\renewcommand\section{\@startsection{section}{1}{\z@}% + {-18\p@ \@plus -4\p@ \@minus -4\p@}% + {12\p@ \@plus 4\p@ \@minus 4\p@}% + {\normalfont\large\bfseries\boldmath + \rightskip=\z@ \@plus 8em\pretolerance=10000 }} +\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% + {-18\p@ \@plus -4\p@ \@minus -4\p@}% + {8\p@ \@plus 4\p@ \@minus 4\p@}% + {\normalfont\normalsize\bfseries\boldmath + \rightskip=\z@ \@plus 8em\pretolerance=10000 }} +\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% + {-18\p@ \@plus -4\p@ \@minus -4\p@}% + {-0.5em \@plus -0.22em \@minus -0.1em}% + {\normalfont\normalsize\bfseries\boldmath}} +\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% + {-12\p@ \@plus -4\p@ \@minus -4\p@}% + {-0.5em \@plus -0.22em \@minus -0.1em}% + {\normalfont\normalsize\itshape}} +\renewcommand\subparagraph[1]{\typeout{LLNCS warning: You should not use + \string\subparagraph\space with this class}\vskip0.5cm +You should not use \verb|\subparagraph| with this class.\vskip0.5cm} + +\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{"00} +\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{"01} +\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{"02} +\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{"03} +\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{"04} +\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{"05} +\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{"06} +\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{"07} +\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{"08} +\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{"09} +\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{"0A} + +\let\footnotesize\small + +\if@custvec +\def\vec#1{\mathchoice{\mbox{\boldmath$\displaystyle#1$}} +{\mbox{\boldmath$\textstyle#1$}} +{\mbox{\boldmath$\scriptstyle#1$}} +{\mbox{\boldmath$\scriptscriptstyle#1$}}} +\fi + +\def\squareforqed{\hbox{\rlap{$\sqcap$}$\sqcup$}} +\def\qed{\ifmmode\squareforqed\else{\unskip\nobreak\hfil +\penalty50\hskip1em\null\nobreak\hfil\squareforqed +\parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi} + +\def\getsto{\mathrel{\mathchoice {\vcenter{\offinterlineskip +\halign{\hfil +$\displaystyle##$\hfil\cr\gets\cr\to\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr\gets +\cr\to\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr\gets +\cr\to\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +\gets\cr\to\cr}}}}} +\def\lid{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil +$\displaystyle##$\hfil\cr<\cr\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr<\cr +\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr<\cr +\noalign{\vskip1pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +<\cr +\noalign{\vskip0.9pt}=\cr}}}}} +\def\gid{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil +$\displaystyle##$\hfil\cr>\cr\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr>\cr +\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr>\cr +\noalign{\vskip1pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +>\cr +\noalign{\vskip0.9pt}=\cr}}}}} +\def\grole{\mathrel{\mathchoice {\vcenter{\offinterlineskip +\halign{\hfil +$\displaystyle##$\hfil\cr>\cr\noalign{\vskip-1pt}<\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr +>\cr\noalign{\vskip-1pt}<\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr +>\cr\noalign{\vskip-0.8pt}<\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +>\cr\noalign{\vskip-0.3pt}<\cr}}}}} +\def\bbbr{{\rm I\!R}} %reelle Zahlen +\def\bbbm{{\rm I\!M}} +\def\bbbn{{\rm I\!N}} %natuerliche Zahlen +\def\bbbf{{\rm I\!F}} +\def\bbbh{{\rm I\!H}} +\def\bbbk{{\rm I\!K}} +\def\bbbp{{\rm I\!P}} +\def\bbbone{{\mathchoice {\rm 1\mskip-4mu l} {\rm 1\mskip-4mu l} +{\rm 1\mskip-4.5mu l} {\rm 1\mskip-5mu l}}} +\def\bbbc{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}}} +\def\bbbq{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm +Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.8\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle\rm Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.8\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle\rm Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.7\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.7\ht0\hss}\box0}}}} +\def\bbbt{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm +T$}\hbox{\hbox to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle\rm T$}\hbox{\hbox +to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle\rm T$}\hbox{\hbox +to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm T$}\hbox{\hbox +to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}}}} +\def\bbbs{{\mathchoice +{\setbox0=\hbox{$\displaystyle \rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\hbox +to0pt{\kern0.55\wd0\vrule height0.5\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle \rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\hbox +to0pt{\kern0.55\wd0\vrule height0.5\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle \rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\raise0.05\ht0\hbox +to0pt{\kern0.5\wd0\vrule height0.45\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.4\wd0\vrule height0.45\ht0\hss}\raise0.05\ht0\hbox +to0pt{\kern0.55\wd0\vrule height0.45\ht0\hss}\box0}}}} +\def\bbbz{{\mathchoice {\hbox{$\mathsf\textstyle Z\kern-0.4em Z$}} +{\hbox{$\mathsf\textstyle Z\kern-0.4em Z$}} +{\hbox{$\mathsf\scriptstyle Z\kern-0.3em Z$}} +{\hbox{$\mathsf\scriptscriptstyle Z\kern-0.2em Z$}}}} + +\let\ts\, + +\setlength\leftmargini {17\p@} +\setlength\leftmargin {\leftmargini} +\setlength\leftmarginii {\leftmargini} +\setlength\leftmarginiii {\leftmargini} +\setlength\leftmarginiv {\leftmargini} +\setlength \labelsep {.5em} +\setlength \labelwidth{\leftmargini} +\addtolength\labelwidth{-\labelsep} + +\def\@listI{\leftmargin\leftmargini + \parsep 0\p@ \@plus1\p@ \@minus\p@ + \topsep 8\p@ \@plus2\p@ \@minus4\p@ + \itemsep0\p@} +\let\@listi\@listI +\@listi +\def\@listii {\leftmargin\leftmarginii + \labelwidth\leftmarginii + \advance\labelwidth-\labelsep + \topsep 0\p@ \@plus2\p@ \@minus\p@} +\def\@listiii{\leftmargin\leftmarginiii + \labelwidth\leftmarginiii + \advance\labelwidth-\labelsep + \topsep 0\p@ \@plus\p@\@minus\p@ + \parsep \z@ + \partopsep \p@ \@plus\z@ \@minus\p@} + +\renewcommand\labelitemi{\normalfont\bfseries --} +\renewcommand\labelitemii{$\m@th\bullet$} + +\setlength\arraycolsep{1.4\p@} +\setlength\tabcolsep{1.4\p@} + +\def\tableofcontents{\chapter*{\contentsname\@mkboth{{\contentsname}}% + {{\contentsname}}} + \def\authcount##1{\setcounter{auco}{##1}\setcounter{@auth}{1}} + \def\lastand{\ifnum\value{auco}=2\relax + \unskip{} \andname\ + \else + \unskip \lastandname\ + \fi}% + \def\and{\stepcounter{@auth}\relax + \ifnum\value{@auth}=\value{auco}% + \lastand + \else + \unskip, + \fi}% + \@starttoc{toc}\if@restonecol\twocolumn\fi} + +\def\l@part#1#2{\addpenalty{\@secpenalty}% + \addvspace{2em plus\p@}% % space above part line + \begingroup + \parindent \z@ + \rightskip \z@ plus 5em + \hrule\vskip5pt + \large % same size as for a contribution heading + \bfseries\boldmath % set line in boldface + \leavevmode % TeX command to enter horizontal mode. + #1\par + \vskip5pt + \hrule + \vskip1pt + \nobreak % Never break after part entry + \endgroup} + +\def\@dotsep{2} + +\let\phantomsection=\relax + +\def\hyperhrefextend{\ifx\hyper@anchor\@undefined\else +{}\fi} + +\def\addnumcontentsmark#1#2#3{% +\addtocontents{#1}{\protect\contentsline{#2}{\protect\numberline + {\thechapter}#3}{\thepage}\hyperhrefextend}}% +\def\addcontentsmark#1#2#3{% +\addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}\hyperhrefextend}}% +\def\addcontentsmarkwop#1#2#3{% +\addtocontents{#1}{\protect\contentsline{#2}{#3}{0}\hyperhrefextend}}% + +\def\@adcmk[#1]{\ifcase #1 \or +\def\@gtempa{\addnumcontentsmark}% + \or \def\@gtempa{\addcontentsmark}% + \or \def\@gtempa{\addcontentsmarkwop}% + \fi\@gtempa{toc}{chapter}% +} +\def\addtocmark{% +\phantomsection +\@ifnextchar[{\@adcmk}{\@adcmk[3]}% +} + +\def\l@chapter#1#2{\addpenalty{-\@highpenalty} + \vskip 1.0em plus 1pt \@tempdima 1.5em \begingroup + \parindent \z@ \rightskip \@tocrmarg + \advance\rightskip by 0pt plus 2cm + \parfillskip -\rightskip \pretolerance=10000 + \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip + {\large\bfseries\boldmath#1}\ifx0#2\hfil\null + \else + \nobreak + \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern + \@dotsep mu$}\hfill + \nobreak\hbox to\@pnumwidth{\hss #2}% + \fi\par + \penalty\@highpenalty \endgroup} + +\def\l@title#1#2{\addpenalty{-\@highpenalty} + \addvspace{8pt plus 1pt} + \@tempdima \z@ + \begingroup + \parindent \z@ \rightskip \@tocrmarg + \advance\rightskip by 0pt plus 2cm + \parfillskip -\rightskip \pretolerance=10000 + \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip + #1\nobreak + \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern + \@dotsep mu$}\hfill + \nobreak\hbox to\@pnumwidth{\hss #2}\par + \penalty\@highpenalty \endgroup} + +\def\l@author#1#2{\addpenalty{\@highpenalty} + \@tempdima=15\p@ %\z@ + \begingroup + \parindent \z@ \rightskip \@tocrmarg + \advance\rightskip by 0pt plus 2cm + \pretolerance=10000 + \leavevmode \advance\leftskip\@tempdima %\hskip -\leftskip + \textit{#1}\par + \penalty\@highpenalty \endgroup} + +\setcounter{tocdepth}{0} +\newdimen\tocchpnum +\newdimen\tocsecnum +\newdimen\tocsectotal +\newdimen\tocsubsecnum +\newdimen\tocsubsectotal +\newdimen\tocsubsubsecnum +\newdimen\tocsubsubsectotal +\newdimen\tocparanum +\newdimen\tocparatotal +\newdimen\tocsubparanum +\tocchpnum=\z@ % no chapter numbers +\tocsecnum=15\p@ % section 88. plus 2.222pt +\tocsubsecnum=23\p@ % subsection 88.8 plus 2.222pt +\tocsubsubsecnum=27\p@ % subsubsection 88.8.8 plus 1.444pt +\tocparanum=35\p@ % paragraph 88.8.8.8 plus 1.666pt +\tocsubparanum=43\p@ % subparagraph 88.8.8.8.8 plus 1.888pt +\def\calctocindent{% +\tocsectotal=\tocchpnum +\advance\tocsectotal by\tocsecnum +\tocsubsectotal=\tocsectotal +\advance\tocsubsectotal by\tocsubsecnum +\tocsubsubsectotal=\tocsubsectotal +\advance\tocsubsubsectotal by\tocsubsubsecnum +\tocparatotal=\tocsubsubsectotal +\advance\tocparatotal by\tocparanum} +\calctocindent + +\def\l@section{\@dottedtocline{1}{\tocchpnum}{\tocsecnum}} +\def\l@subsection{\@dottedtocline{2}{\tocsectotal}{\tocsubsecnum}} +\def\l@subsubsection{\@dottedtocline{3}{\tocsubsectotal}{\tocsubsubsecnum}} +\def\l@paragraph{\@dottedtocline{4}{\tocsubsubsectotal}{\tocparanum}} +\def\l@subparagraph{\@dottedtocline{5}{\tocparatotal}{\tocsubparanum}} + +\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \fi\section*{\listfigurename\@mkboth{{\listfigurename}}{{\listfigurename}}} + \@starttoc{lof}\if@restonecol\twocolumn\fi} +\def\l@figure{\@dottedtocline{1}{0em}{1.5em}} + +\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \fi\section*{\listtablename\@mkboth{{\listtablename}}{{\listtablename}}} + \@starttoc{lot}\if@restonecol\twocolumn\fi} +\let\l@table\l@figure + +\renewcommand\listoffigures{% + \section*{\listfigurename + \@mkboth{\listfigurename}{\listfigurename}}% + \@starttoc{lof}% + } + +\renewcommand\listoftables{% + \section*{\listtablename + \@mkboth{\listtablename}{\listtablename}}% + \@starttoc{lot}% + } + +\ifx\oribibl\undefined +\ifx\citeauthoryear\undefined +\renewenvironment{thebibliography}[1] + {\section*{\refname} + \def\@biblabel##1{##1.} + \small + \list{\@biblabel{\@arabic\c@enumiv}}% + {\settowidth\labelwidth{\@biblabel{#1}}% + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \if@openbib + \advance\leftmargin\bibindent + \itemindent -\bibindent + \listparindent \itemindent + \parsep \z@ + \fi + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{\@arabic\c@enumiv}}% + \if@openbib + \renewcommand\newblock{\par}% + \else + \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% + \fi + \sloppy\clubpenalty4000\widowpenalty4000% + \sfcode`\.=\@m} + {\def\@noitemerr + {\@latex@warning{Empty `thebibliography' environment}}% + \endlist} +\def\@lbibitem[#1]#2{\item[{[#1]}\hfill]\if@filesw + {\let\protect\noexpand\immediate + \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces} +\newcount\@tempcntc +\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi + \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do + {\@ifundefined + {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bfseries + ?}\@warning + {Citation `\@citeb' on page \thepage \space undefined}}% + {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}% + \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne + \@citea\def\@citea{,}\hbox{\csname b@\@citeb\endcsname}% + \else + \advance\@tempcntb\@ne + \ifnum\@tempcntb=\@tempcntc + \else\advance\@tempcntb\m@ne\@citeo + \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}} +\def\@citeo{\ifnum\@tempcnta>\@tempcntb\else + \@citea\def\@citea{,\,\hskip\z@skip}% + \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else + {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else + \def\@citea{--}\fi + \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi} +\else +\renewenvironment{thebibliography}[1] + {\section*{\refname} + \small + \list{}% + {\settowidth\labelwidth{}% + \leftmargin\parindent + \itemindent=-\parindent + \labelsep=\z@ + \if@openbib + \advance\leftmargin\bibindent + \itemindent -\bibindent + \listparindent \itemindent + \parsep \z@ + \fi + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{}}% + \if@openbib + \renewcommand\newblock{\par}% + \else + \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% + \fi + \sloppy\clubpenalty4000\widowpenalty4000% + \sfcode`\.=\@m} + {\def\@noitemerr + {\@latex@warning{Empty `thebibliography' environment}}% + \endlist} + \def\@cite#1{#1}% + \def\@lbibitem[#1]#2{\item[]\if@filesw + {\def\protect##1{\string ##1\space}\immediate + \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces} + \fi +\else +\@cons\@openbib@code{\noexpand\small} +\fi + +\def\idxquad{\hskip 10\p@}% space that divides entry from number + +\def\@idxitem{\par\hangindent 10\p@} + +\def\subitem{\par\setbox0=\hbox{--\enspace}% second order + \noindent\hangindent\wd0\box0}% index entry + +\def\subsubitem{\par\setbox0=\hbox{--\,--\enspace}% third + \noindent\hangindent\wd0\box0}% order index entry + +\def\indexspace{\par \vskip 10\p@ plus5\p@ minus3\p@\relax} + +\renewenvironment{theindex} + {\@mkboth{\indexname}{\indexname}% + \thispagestyle{empty}\parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \let\item\par + \def\,{\relax\ifmmode\mskip\thinmuskip + \else\hskip0.2em\ignorespaces\fi}% + \normalfont\small + \begin{multicols}{2}[\@makeschapterhead{\indexname}]% + } + {\end{multicols}} + +\renewcommand\footnoterule{% + \kern-3\p@ + \hrule\@width 2truecm + \kern2.6\p@} + \newdimen\fnindent + \fnindent1em +\long\def\@makefntext#1{% + \parindent \fnindent% + \leftskip \fnindent% + \noindent + \llap{\hb@xt@1em{\hss\@makefnmark\ }}\ignorespaces#1} + +\long\def\@makecaption#1#2{% + \small + \vskip\abovecaptionskip + \sbox\@tempboxa{{\bfseries #1.} #2}% + \ifdim \wd\@tempboxa >\hsize + {\bfseries #1.} #2\par + \else + \global \@minipagefalse + \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% + \fi + \vskip\belowcaptionskip} + +\def\fps@figure{htbp} +\def\fnum@figure{\figurename\thinspace\thefigure} +\def \@floatboxreset {% + \reset@font + \small + \@setnobreak + \@setminipage +} +\def\fps@table{htbp} +\def\fnum@table{\tablename~\thetable} +\renewenvironment{table} + {\setlength\abovecaptionskip{0\p@}% + \setlength\belowcaptionskip{10\p@}% + \@float{table}} + {\end@float} +\renewenvironment{table*} + {\setlength\abovecaptionskip{0\p@}% + \setlength\belowcaptionskip{10\p@}% + \@dblfloat{table}} + {\end@dblfloat} + +\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname + ext@#1\endcsname}{#1}{\protect\numberline{\csname + the#1\endcsname}{\ignorespaces #2}}\begingroup + \@parboxrestore + \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par + \endgroup} + +% LaTeX does not provide a command to enter the authors institute +% addresses. The \institute command is defined here. + +\newcounter{@inst} +\newcounter{@auth} +\newcounter{auco} +\newdimen\instindent +\newbox\authrun +\newtoks\authorrunning +\newtoks\tocauthor +\newbox\titrun +\newtoks\titlerunning +\newtoks\toctitle + +\def\clearheadinfo{\gdef\@author{No Author Given}% + \gdef\@title{No Title Given}% + \gdef\@subtitle{}% + \gdef\@institute{No Institute Given}% + \gdef\@thanks{}% + \global\titlerunning={}\global\authorrunning={}% + \global\toctitle={}\global\tocauthor={}} + +\def\institute#1{\gdef\@institute{#1}} + +\def\institutename{\par + \begingroup + \parskip=\z@ + \parindent=\z@ + \setcounter{@inst}{1}% + \def\and{\par\stepcounter{@inst}% + \noindent$^{\the@inst}$\enspace\ignorespaces}% + \setbox0=\vbox{\def\thanks##1{}\@institute}% + \ifnum\c@@inst=1\relax + \gdef\fnnstart{0}% + \else + \xdef\fnnstart{\c@@inst}% + \setcounter{@inst}{1}% + \noindent$^{\the@inst}$\enspace + \fi + \ignorespaces + \@institute\par + \endgroup} + +\def\@fnsymbol#1{\ensuremath{\ifcase#1\or\star\or{\star\star}\or + {\star\star\star}\or \dagger\or \ddagger\or + \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger + \or \ddagger\ddagger \else\@ctrerr\fi}} + +\def\inst#1{\unskip$^{#1}$} +\def\orcidID#1{\unskip$^{[#1]}$} % added MR 2018-03-10 +\def\fnmsep{\unskip$^,$} +\def\email#1{{\tt#1}} + +\AtBeginDocument{\@ifundefined{url}{\def\url#1{#1}}{}% +\@ifpackageloaded{babel}{% +\@ifundefined{extrasenglish}{}{\addto\extrasenglish{\switcht@albion}}% +\@ifundefined{extrasfrenchb}{}{\addto\extrasfrenchb{\switcht@francais}}% +\@ifundefined{extrasgerman}{}{\addto\extrasgerman{\switcht@deutsch}}% +\@ifundefined{extrasngerman}{}{\addto\extrasngerman{\switcht@deutsch}}% +}{\switcht@@therlang}% +\providecommand{\keywords}[1]{\def\and{{\textperiodcentered} }% +\par\addvspace\baselineskip +\noindent\keywordname\enspace\ignorespaces#1}% +\@ifpackageloaded{hyperref}{% +\def\doi#1{\href{https://doi.org/\detokenize{#1}}{\url{https://doi.org/#1}}}}{ +\def\doi#1{https://doi.org/\detokenize{#1}}} +} +\def\homedir{\~{ }} + +\def\subtitle#1{\gdef\@subtitle{#1}} +\clearheadinfo +% +%%% to avoid hyperref warnings +\providecommand*{\toclevel@author}{999} +%%% to make title-entry parent of section-entries +\providecommand*{\toclevel@title}{0} +% +\renewcommand\maketitle{\newpage +\phantomsection + \refstepcounter{chapter}% + \stepcounter{section}% + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \setcounter{figure}{0} + \setcounter{table}{0} + \setcounter{equation}{0} + \setcounter{footnote}{0}% + \begingroup + \parindent=\z@ + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \if@twocolumn + \ifnum \col@number=\@ne + \@maketitle + \else + \twocolumn[\@maketitle]% + \fi + \else + \newpage + \global\@topnum\z@ % Prevents figures from going at top of page. + \@maketitle + \fi + \thispagestyle{empty}\@thanks +% + \def\\{\unskip\ \ignorespaces}\def\inst##1{\unskip{}}% + \def\thanks##1{\unskip{}}\def\fnmsep{\unskip}% + \instindent=\hsize + \advance\instindent by-\headlineindent + \if!\the\toctitle!\addcontentsline{toc}{title}{\@title}\else + \addcontentsline{toc}{title}{\the\toctitle}\fi + \if@runhead + \if!\the\titlerunning!\else + \edef\@title{\the\titlerunning}% + \fi + \global\setbox\titrun=\hbox{\small\rm\unboldmath\ignorespaces\@title}% + \ifdim\wd\titrun>\instindent + \typeout{Title too long for running head. Please supply}% + \typeout{a shorter form with \string\titlerunning\space prior to + \string\maketitle}% + \global\setbox\titrun=\hbox{\small\rm + Title Suppressed Due to Excessive Length}% + \fi + \xdef\@title{\copy\titrun}% + \fi +% + \if!\the\tocauthor!\relax + {\def\and{\noexpand\protect\noexpand\and}% + \def\inst##1{}% added MR 2017-09-20 to remove inst numbers from the TOC + \def\orcidID##1{}% added MR 2017-09-20 to remove ORCID ids from the TOC + \protected@xdef\toc@uthor{\@author}}% + \else + \def\\{\noexpand\protect\noexpand\newline}% + \protected@xdef\scratch{\the\tocauthor}% + \protected@xdef\toc@uthor{\scratch}% + \fi + \addtocontents{toc}{\noexpand\protect\noexpand\authcount{\the\c@auco}}% + \addcontentsline{toc}{author}{\toc@uthor}% + \if@runhead + \if!\the\authorrunning! + \value{@inst}=\value{@auth}% + \setcounter{@auth}{1}% + \else + \edef\@author{\the\authorrunning}% + \fi + \global\setbox\authrun=\hbox{\def\inst##1{}% added MR 2017-09-20 to remove inst numbers from the runninghead + \def\orcidID##1{}% added MR 2017-09-20 to remove ORCID ids from the runninghead + \small\unboldmath\@author\unskip}% + \ifdim\wd\authrun>\instindent + \typeout{Names of authors too long for running head. Please supply}% + \typeout{a shorter form with \string\authorrunning\space prior to + \string\maketitle}% + \global\setbox\authrun=\hbox{\small\rm + Authors Suppressed Due to Excessive Length}% + \fi + \xdef\@author{\copy\authrun}% + \markboth{\@author}{\@title}% + \fi + \endgroup + \setcounter{footnote}{\fnnstart}% + \clearheadinfo} +% +\def\@maketitle{\newpage + \markboth{}{}% + \def\lastand{\ifnum\value{@inst}=2\relax + \unskip{} \andname\ + \else + \unskip \lastandname\ + \fi}% + \def\and{\stepcounter{@auth}\relax + \ifnum\value{@auth}=\value{@inst}% + \lastand + \else + \unskip, + \fi}% + \begin{center}% + \let\newline\\ + {\Large \bfseries\boldmath + \pretolerance=10000 + \@title \par}\vskip .8cm +\if!\@subtitle!\else {\large \bfseries\boldmath + \vskip -.65cm + \pretolerance=10000 + \@subtitle \par}\vskip .8cm\fi + \setbox0=\vbox{\setcounter{@auth}{1}\def\and{\stepcounter{@auth}}% + \def\thanks##1{}\@author}% + \global\value{@inst}=\value{@auth}% + \global\value{auco}=\value{@auth}% + \setcounter{@auth}{1}% +{\lineskip .5em +\noindent\ignorespaces +\@author\vskip.35cm} + {\small\institutename} + \end{center}% + } + +% definition of the "\spnewtheorem" command. +% +% Usage: +% +% \spnewtheorem{env_nam}{caption}[within]{cap_font}{body_font} +% or \spnewtheorem{env_nam}[numbered_like]{caption}{cap_font}{body_font} +% or \spnewtheorem*{env_nam}{caption}{cap_font}{body_font} +% +% New is "cap_font" and "body_font". It stands for +% fontdefinition of the caption and the text itself. +% +% "\spnewtheorem*" gives a theorem without number. +% +% A defined spnewthoerem environment is used as described +% by Lamport. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\@thmcountersep{} +\def\@thmcounterend{.} + +\def\spnewtheorem{\@ifstar{\@sthm}{\@Sthm}} + +% definition of \spnewtheorem with number + +\def\@spnthm#1#2{% + \@ifnextchar[{\@spxnthm{#1}{#2}}{\@spynthm{#1}{#2}}} +\def\@Sthm#1{\@ifnextchar[{\@spothm{#1}}{\@spnthm{#1}}} + +\def\@spxnthm#1#2[#3]#4#5{\expandafter\@ifdefinable\csname #1\endcsname + {\@definecounter{#1}\@addtoreset{#1}{#3}% + \expandafter\xdef\csname the#1\endcsname{\expandafter\noexpand + \csname the#3\endcsname \noexpand\@thmcountersep \@thmcounter{#1}}% + \expandafter\xdef\csname #1name\endcsname{#2}% + \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#4}{#5}}% + \global\@namedef{end#1}{\@endtheorem}}} + +\def\@spynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname + {\@definecounter{#1}% + \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}% + \expandafter\xdef\csname #1name\endcsname{#2}% + \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#3}{#4}}% + \global\@namedef{end#1}{\@endtheorem}}} + +\def\@spothm#1[#2]#3#4#5{% + \@ifundefined{c@#2}{\@latexerr{No theorem environment `#2' defined}\@eha}% + {\expandafter\@ifdefinable\csname #1\endcsname + {\newaliascnt{#1}{#2}% + \expandafter\xdef\csname #1name\endcsname{#3}% + \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#4}{#5}}% + \global\@namedef{end#1}{\@endtheorem}}}} + +\def\@spthm#1#2#3#4{\topsep 7\p@ \@plus2\p@ \@minus4\p@ +\refstepcounter{#1}% +\@ifnextchar[{\@spythm{#1}{#2}{#3}{#4}}{\@spxthm{#1}{#2}{#3}{#4}}} + +\def\@spxthm#1#2#3#4{\@spbegintheorem{#2}{\csname the#1\endcsname}{#3}{#4}% + \ignorespaces} + +\def\@spythm#1#2#3#4[#5]{\@spopargbegintheorem{#2}{\csname + the#1\endcsname}{#5}{#3}{#4}\ignorespaces} + +\def\@spbegintheorem#1#2#3#4{\trivlist + \item[\hskip\labelsep{#3#1\ #2\@thmcounterend}]#4} + +\def\@spopargbegintheorem#1#2#3#4#5{\trivlist + \item[\hskip\labelsep{#4#1\ #2}]{#4(#3)\@thmcounterend\ }#5} + +% definition of \spnewtheorem* without number + +\def\@sthm#1#2{\@Ynthm{#1}{#2}} + +\def\@Ynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname + {\global\@namedef{#1}{\@Thm{\csname #1name\endcsname}{#3}{#4}}% + \expandafter\xdef\csname #1name\endcsname{#2}% + \global\@namedef{end#1}{\@endtheorem}}} + +\def\@Thm#1#2#3{\topsep 7\p@ \@plus2\p@ \@minus4\p@ +\@ifnextchar[{\@Ythm{#1}{#2}{#3}}{\@Xthm{#1}{#2}{#3}}} + +\def\@Xthm#1#2#3{\@Begintheorem{#1}{#2}{#3}\ignorespaces} + +\def\@Ythm#1#2#3[#4]{\@Opargbegintheorem{#1} + {#4}{#2}{#3}\ignorespaces} + +\def\@Begintheorem#1#2#3{#3\trivlist + \item[\hskip\labelsep{#2#1\@thmcounterend}]} + +\def\@Opargbegintheorem#1#2#3#4{#4\trivlist + \item[\hskip\labelsep{#3#1}]{#3(#2)\@thmcounterend\ }} + +\if@envcntsect + \def\@thmcountersep{.} + \spnewtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape} +\else + \spnewtheorem{theorem}{Theorem}{\bfseries}{\itshape} + \if@envcntreset + \@addtoreset{theorem}{section} + \else + \@addtoreset{theorem}{chapter} + \fi +\fi + +%definition of divers theorem environments +\spnewtheorem*{claim}{Claim}{\itshape}{\rmfamily} +\spnewtheorem*{proof}{Proof}{\itshape}{\rmfamily} +\if@envcntsame % alle Umgebungen wie Theorem. + \def\spn@wtheorem#1#2#3#4{\@spothm{#1}[theorem]{#2}{#3}{#4}} +\else % alle Umgebungen mit eigenem Zaehler + \if@envcntsect % mit section numeriert + \def\spn@wtheorem#1#2#3#4{\@spxnthm{#1}{#2}[section]{#3}{#4}} + \else % nicht mit section numeriert + \if@envcntreset + \def\spn@wtheorem#1#2#3#4{\@spynthm{#1}{#2}{#3}{#4} + \@addtoreset{#1}{section}} + \else + \def\spn@wtheorem#1#2#3#4{\@spynthm{#1}{#2}{#3}{#4} + \@addtoreset{#1}{chapter}}% + \fi + \fi +\fi +\spn@wtheorem{case}{Case}{\itshape}{\rmfamily} +\spn@wtheorem{conjecture}{Conjecture}{\itshape}{\rmfamily} +\spn@wtheorem{corollary}{Corollary}{\bfseries}{\itshape} +\spn@wtheorem{definition}{Definition}{\bfseries}{\itshape} +\spn@wtheorem{example}{Example}{\itshape}{\rmfamily} +\spn@wtheorem{exercise}{Exercise}{\itshape}{\rmfamily} +\spn@wtheorem{lemma}{Lemma}{\bfseries}{\itshape} +\spn@wtheorem{note}{Note}{\itshape}{\rmfamily} +\spn@wtheorem{problem}{Problem}{\itshape}{\rmfamily} +\spn@wtheorem{property}{Property}{\itshape}{\rmfamily} +\spn@wtheorem{proposition}{Proposition}{\bfseries}{\itshape} +\spn@wtheorem{question}{Question}{\itshape}{\rmfamily} +\spn@wtheorem{solution}{Solution}{\itshape}{\rmfamily} +\spn@wtheorem{remark}{Remark}{\itshape}{\rmfamily} + +\def\@takefromreset#1#2{% + \def\@tempa{#1}% + \let\@tempd\@elt + \def\@elt##1{% + \def\@tempb{##1}% + \ifx\@tempa\@tempb\else + \@addtoreset{##1}{#2}% + \fi}% + \expandafter\expandafter\let\expandafter\@tempc\csname cl@#2\endcsname + \expandafter\def\csname cl@#2\endcsname{}% + \@tempc + \let\@elt\@tempd} + +\def\theopargself{\def\@spopargbegintheorem##1##2##3##4##5{\trivlist + \item[\hskip\labelsep{##4##1\ ##2}]{##4##3\@thmcounterend\ }##5} + \def\@Opargbegintheorem##1##2##3##4{##4\trivlist + \item[\hskip\labelsep{##3##1}]{##3##2\@thmcounterend\ }} + } + +\renewenvironment{abstract}{% + \list{}{\advance\topsep by0.35cm\relax\small + \leftmargin=1cm + \labelwidth=\z@ + \listparindent=\z@ + \itemindent\listparindent + \rightmargin\leftmargin}\item[\hskip\labelsep + \bfseries\abstractname]} + {\endlist} + +\newdimen\headlineindent % dimension for space between +\headlineindent=1.166cm % number and text of headings. + +\def\ps@headings{\let\@mkboth\@gobbletwo + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\normalfont\small\rlap{\thepage}\hspace{\headlineindent}% + \leftmark\hfil} + \def\@oddhead{\normalfont\small\hfil\rightmark\hspace{\headlineindent}% + \llap{\thepage}} + \def\chaptermark##1{}% + \def\sectionmark##1{}% + \def\subsectionmark##1{}} + +\def\ps@titlepage{\let\@mkboth\@gobbletwo + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\normalfont\small\rlap{\thepage}\hspace{\headlineindent}% + \hfil} + \def\@oddhead{\normalfont\small\hfil\hspace{\headlineindent}% + \llap{\thepage}} + \def\chaptermark##1{}% + \def\sectionmark##1{}% + \def\subsectionmark##1{}} + +\if@runhead\ps@headings\else +\ps@empty\fi + +\setlength\arraycolsep{1.4\p@} +\setlength\tabcolsep{1.4\p@} + +\endinput +%end of file llncs.cls
@@ -0,0 +1,108 @@
+\documentclass{llncs} +%\documentclass[runningheads, draft]{llncs} + +\input{preamble-packages} +\input{preamble-macros} + +\title{\textsc{Vocdoni Z Whitepaper}\vspace{-0.4cm}} +\author{Authors: Pau Escrich and Jordi Piñana from Vocdoni Association} +\institute{Last update: \today} + +\begin{document} + +\maketitle + +%enumerate pages +\pagestyle{plain} +\thispagestyle{plain} + +\begin{abstract} +\end{abstract} + +\setcounter{tocdepth}{3} +\makeatletter +\renewcommand*\l@author[2]{} +\renewcommand*\l@title[2]{} +\makeatletter +\tableofcontents + +\section{Vocdoni Z -- the universal voting protocol} +\label{sec:vocdoni-z} +\input{\secs/vocdoni-z} + +\section{Key Technologies Used} +\label{sec:tech-used} +\input{\secs/tech-used} + +\section{Components Overview} +\label{sec:components-overview} +\input{\secs/components-overview} + +\section{Operation Overview} +\label{sec:operation-overview} +\input{\secs/operation-overview} + +\section{Sequencer and State Transitions} +\label{sec:sequencer-state-transition} +\input{\secs/sequencer-state-transition} + +\section{The Vote} +\label{sec:vote} +\input{\secs/vote} + +\section{The Ballot Protocol} +\label{sec:ballot-protocol} +\input{\secs/ballot-protocol} + +\section{The voting encryption key} +\label{sec:voting-encryption-key} +\input{\secs/voting-encryption-key} + +\section{The distributed key generation (DKG)} +\label{sec:distributed-key-generation} +\input{\secs/distributed-key-generation} + +\section{Receipt-Freeness} +\label{sec:receipt-freeness} +\input{\secs/receipt-freeness} + +\section{How User's Privacy Is Preserved} +\label{sec:user-privacy-preserving} +\input{\secs/user-privacy-preserving} + +\section{Quantum Resistance} +\label{sec:quantum-resistance} +\input{\secs/quantum-resistance} + +\section{The Vocdoni Token (VOC)} +\label{sec:vocdoni-token} +\input{\secs/vocdoni-token} + +\section{Acknowledgments} + +The authors would like to thank the following reviewers and contributors for their valuable feedback and support: + +\begin{itemize} + \item The Vocdoni team + \item Jordi Baylina (Iden3 and Polygon) + \item Adrià Maçanet (Privacy Scaling Explorations, Ethereum Foundation) + \item Arnaucube (0xPARC) + \item Alex Kampa (AZKR) + \item Roger Baig (Polytechnic University of Catalonia) + \item Javier Herranz (Polytechnic University of Catalonia) + \item Jordi Puiggali (Secrets Vault) +\end{itemize} + +% ---- Bibliography ---- + +\section*{References} +\begin{itemize} + \item Ivan Damgård and Mads Jurik. ``A Generalisation of Paillier’s Public-Key System with Applications to Electronic Voting." + \item Markus Jakobsson, Kazue Sako, and Russell Impagliazzo. ``Designated Verifier Proofs and Their Applications." + \item Damgård and M. Koprowski: Practical Threshold RSA Signatures Without a Trusted Dealer +\end{itemize} + +%\bibliographystyle{splncs04} +%\bibliography{\bib/bibtex} + +\end{document}
@@ -0,0 +1,70 @@
+% !TeX root = main.tex + +% Doc sytle +\setcounter{secnumdepth}{3} %enumerate sections up to depth 3 (subsubsection) + +% Working directory +\newcommand{\definedir}[2]{\newcommand{#1}{#2}} +\definedir{\secs}{../sections} +\definedir{\figs}{../figures} +\definedir{\bib}{../bibliography} + +% Comments +\newcommand{\marta}[1]{\todo[size=\small, color=red!40]{\textbf{Marta}: #1}} +\newcommand{\martai}[1]{\todo[inline, size=\small, color=red!40]{\textbf{Marta}: #1}} +\newcommand{\xavi}[1]{\todo[size=\small, color=green!40]{\textbf{xavi}: #1}} +\newcommand{\xavii}[1]{\todo[inline, size=\small, color=green!40]{\textbf{Xavi}: #1}} +\newcommand{\fede}[1]{\todo[size=\small, color=blue!40]{\textbf{Fede}: #1}} +\newcommand{\fedei}[1]{\todo[inline, size=\small, color=blue!40]{\textbf{Fede}: #1}} +\newcommand{\ema}[1]{\todo[size=\small, color=irabge!40]{\textbf{Ema}: #1}} +\newcommand{\emai}[1]{\todo[inline, size=\small, color=orange!40]{\textbf{Ema}: #1}} + +% Mathbb +\newcommand{\N}{\ensuremath{\mathbb{N}}\xspace} +\newcommand{\Z}{\ensuremath{\mathbb{Z}}\xspace} +\newcommand{\G}{\ensuremath{\mathbb{G}}\xspace} +\newcommand{\F}{\ensuremath{\mathbb{F}}} + +% Consensus +\newcommand{\valid}{\texttt{valid}\xspace} +\newcommand{\invalid}{\texttt{invalid}\xspace} +\newcommand{\noquorum}{\texttt{noQuorum}\xspace} +\newcommand{\nocandidate}{\texttt{noCandidate}\xspace} +\newcommand{\nil}{\texttt{NIL}\xspace} +\newcommand{\final}{\texttt{final}\xspace} +\newcommand{\score}{\texttt{score}\xspace} +\newcommand{\stepvotes}{\texttt{stepVotes}\xspace} +\newcommand{\unknown}{\texttt{unknown}\xspace} +\newcommand{\round}{\texttt{R}\xspace} +\newcommand{\seed}{\texttt{seed}\xspace} +\newcommand{\step}{\texttt{S}\xspace} +\newcommand{\credit}{\texttt{c}\xspace} +\newcommand{\accepted}{\texttt{accepted}\xspace} +\newcommand{\attested}{\texttt{attested}\xspace} +\newcommand{\confirmed}{\texttt{confirmed}\xspace} +\newcommand{\failed}{\texttt{failed}\xspace} +\newcommand{\stake}{\texttt{stake}\xspace} +\newcommand{\amount}{\texttt{amount}\xspace} +\newcommand{\height}{\texttt{height}\xspace} +\newcommand{\epoch}{\texttt{epoch}\xspace} +\newcommand{\minstake}{\texttt{minStake}\xspace} + +% Others +\newcommand{\dusk}{{\footnotesize{\sf{DUSK}}}\xspace} +\newcommand{\noi}{\noindent} + +% freefootnote +\let\svthefootnote\thefootnote +\newcommand\freefootnote[1]{% + \let\thefootnote\relax% + \footnotetext{#1}% + \let\thefootnote\svthefootnote% +} + +% draft watermark +\ifdraft{\SetWatermarkScale{4}}{\SetWatermarkScale{0}} + +% new foonote referencing a previous footmark +\makeatletter +\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark} +\makeatother
@@ -0,0 +1,39 @@
+% !TeX root = main.tex + +\usepackage[T1]{fontenc} +\usepackage[margin=0.5in]{geometry} +\usepackage{graphicx} +\usepackage{authblk} + +\usepackage{float} + +\usepackage[english]{babel} +\usepackage[utf8]{inputenc} + +\usepackage{hyperref} +\hypersetup{final} + +\usepackage{footmisc} %footnotes handling + +\usepackage{amsmath, amssymb, mathtools} +\usepackage{listings} +\usepackage{graphicx, color, xcolor} +\usepackage{xspace} %list of punctuation marks +\usepackage{enumitem} +\usepackage{multirow} +\usepackage{ifdraft} +\usepackage{draftwatermark} + +\usepackage{setspace} + +%\ifdraft{ +% % \usepackage[color = {[rgb]{0.9, 0.9, 0.9}}]{draftwatermark} +% \usepackage{draftwatermark} +% \SetWatermarkText{Draft} +% \SetWatermarkScale{4} +%} + +\ifdraft{\usepackage[colorinlistoftodos, textwidth = 40mm]{todonotes}} +{\usepackage[disable, colorinlistoftodos, textwidth = 40mm]{todonotes}} + +\usepackage{tikz,tikz-cd}
@@ -0,0 +1,1548 @@
+%% BibTeX bibliography style `splncs03' +%% +%% BibTeX bibliography style for use with numbered references in +%% Springer Verlag's "Lecture Notes in Computer Science" series. +%% (See Springer's documentation for llncs.cls for +%% more details of the suggested reference format.) Note that this +%% file will not work for author-year style citations. +%% +%% Use \documentclass{llncs} and \bibliographystyle{splncs03}, and cite +%% a reference with (e.g.) \cite{smith77} to get a "[1]" in the text. +%% +%% This file comes to you courtesy of Maurizio "Titto" Patrignani of +%% Dipartimento di Informatica e Automazione Universita' Roma Tre +%% +%% ================================================================================================ +%% This was file `titto-lncs-02.bst' produced on Wed Apr 1, 2009 +%% Edited by hand by titto based on `titto-lncs-01.bst' (see below) +%% +%% CHANGES (with respect to titto-lncs-01.bst): +%% - Removed the call to \urlprefix (thus no "URL" string is added to the output) +%% ================================================================================================ +%% This was file `titto-lncs-01.bst' produced on Fri Aug 22, 2008 +%% Edited by hand by titto based on `titto.bst' (see below) +%% +%% CHANGES (with respect to titto.bst): +%% - Removed the "capitalize" command for editors string "(eds.)" and "(ed.)" +%% - Introduced the functions titto.bbl.pages and titto.bbl.page for journal pages (without "pp.") +%% - Added a new.sentence command to separate with a dot booktitle and series in the inproceedings +%% - Commented all new.block commands before urls and notes (to separate them with a comma) +%% - Introduced the functions titto.bbl.volume for handling journal volumes (without "vol." label) +%% - Used for editors the same name conventions used for authors (see function format.in.ed.booktitle) +%% - Removed a \newblock to avoid long spaces between title and "In: ..." +%% - Added function titto.space.prefix to add a space instead of "~" after the (removed) "vol." label +%% - Added doi +%% ================================================================================================ +%% This was file `titto.bst', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% merlin.mbs (with options: `vonx,nm-rvvc,yr-par,jttl-rm,volp-com,jwdpg,jwdvol,numser,ser-vol,jnm-x,btit-rm,bt-rm,edparxc,bkedcap,au-col,in-col,fin-bare,pp,ed,abr,mth-bare,xedn,jabr,and-com,and-com-ed,xand,url,url-blk,em-x,nfss,') +%% ---------------------------------------- +%% *** Tentative .bst file for Springer LNCS *** +%% +%% Copyright 1994-2007 Patrick W Daly + % =============================================================== + % IMPORTANT NOTICE: + % This bibliographic style (bst) file has been generated from one or + % more master bibliographic style (mbs) files, listed above. + % + % This generated file can be redistributed and/or modified under the terms + % of the LaTeX Project Public License Distributed from CTAN + % archives in directory macros/latex/base/lppl.txt; either + % version 1 of the License, or any later version. + % =============================================================== + % Name and version information of the main mbs file: + % \ProvidesFile{merlin.mbs}[2007/04/24 4.20 (PWD, AO, DPC)] + % For use with BibTeX version 0.99a or later + %------------------------------------------------------------------- + % This bibliography style file is intended for texts in ENGLISH + % This is a numerical citation style, and as such is standard LaTeX. + % It requires no extra package to interface to the main text. + % The form of the \bibitem entries is + % \bibitem{key}... + % Usage of \cite is as follows: + % \cite{key} ==>> [#] + % \cite[chap. 2]{key} ==>> [#, chap. 2] + % where # is a number determined by the ordering in the reference list. + % The order in the reference list is alphabetical by authors. + %--------------------------------------------------------------------- + +ENTRY + { address + author + booktitle + chapter + doi + edition + editor + eid + howpublished + institution + journal + key + month + note + number + organization + pages + publisher + school + series + title + type + url + volume + year + } + {} + { label } +INTEGERS { output.state before.all mid.sentence after.sentence after.block } +FUNCTION {init.state.consts} +{ #0 'before.all := + #1 'mid.sentence := + #2 'after.sentence := + #3 'after.block := +} +STRINGS { s t} +FUNCTION {output.nonnull} +{ 's := + output.state mid.sentence = + { ", " * write$ } + { output.state after.block = + { add.period$ write$ +% newline$ +% "\newblock " write$ % removed for titto-lncs-01 + " " write$ % to avoid long spaces between title and "In: ..." + } + { output.state before.all = + 'write$ + { add.period$ " " * write$ } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} +FUNCTION {output} +{ duplicate$ empty$ + 'pop$ + 'output.nonnull + if$ +} +FUNCTION {output.check} +{ 't := + duplicate$ empty$ + { pop$ "empty " t * " in " * cite$ * warning$ } + 'output.nonnull + if$ +} +FUNCTION {fin.entry} +{ duplicate$ empty$ + 'pop$ + 'write$ + if$ + newline$ +} + +FUNCTION {new.block} +{ output.state before.all = + 'skip$ + { after.block 'output.state := } + if$ +} +FUNCTION {new.sentence} +{ output.state after.block = + 'skip$ + { output.state before.all = + 'skip$ + { after.sentence 'output.state := } + if$ + } + if$ +} +FUNCTION {add.blank} +{ " " * before.all 'output.state := +} + + +FUNCTION {add.colon} +{ duplicate$ empty$ + 'skip$ + { ":" * add.blank } + if$ +} + +FUNCTION {date.block} +{ + new.block +} + +FUNCTION {not} +{ { #0 } + { #1 } + if$ +} +FUNCTION {and} +{ 'skip$ + { pop$ #0 } + if$ +} +FUNCTION {or} +{ { pop$ #1 } + 'skip$ + if$ +} +STRINGS {z} +FUNCTION {remove.dots} +{ 'z := + "" + { z empty$ not } + { z #1 #1 substring$ + z #2 global.max$ substring$ 'z := + duplicate$ "." = 'pop$ + { * } + if$ + } + while$ +} +FUNCTION {new.block.checka} +{ empty$ + 'skip$ + 'new.block + if$ +} +FUNCTION {new.block.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.block + if$ +} +FUNCTION {new.sentence.checka} +{ empty$ + 'skip$ + 'new.sentence + if$ +} +FUNCTION {new.sentence.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.sentence + if$ +} +FUNCTION {field.or.null} +{ duplicate$ empty$ + { pop$ "" } + 'skip$ + if$ +} +FUNCTION {emphasize} +{ skip$ } + +FUNCTION {embolden} +{ duplicate$ empty$ +{ pop$ "" } +{ "\textbf{" swap$ * "}" * } +if$ +} +FUNCTION {tie.or.space.prefix} +{ duplicate$ text.length$ #5 < + { "~" } + { " " } + if$ + swap$ +} +FUNCTION {titto.space.prefix} % always introduce a space +{ duplicate$ text.length$ #3 < + { " " } + { " " } + if$ + swap$ +} + + +FUNCTION {capitalize} +{ "u" change.case$ "t" change.case$ } + +FUNCTION {space.word} +{ " " swap$ * " " * } + % Here are the language-specific definitions for explicit words. + % Each function has a name bbl.xxx where xxx is the English word. + % The language selected here is ENGLISH +FUNCTION {bbl.and} +{ "and"} + +FUNCTION {bbl.etal} +{ "et~al." } + +FUNCTION {bbl.editors} +{ "eds." } + +FUNCTION {bbl.editor} +{ "ed." } + +FUNCTION {bbl.edby} +{ "edited by" } + +FUNCTION {bbl.edition} +{ "edn." } + +FUNCTION {bbl.volume} +{ "vol." } + +FUNCTION {titto.bbl.volume} % for handling journals +{ "" } + +FUNCTION {bbl.of} +{ "of" } + +FUNCTION {bbl.number} +{ "no." } + +FUNCTION {bbl.nr} +{ "no." } + +FUNCTION {bbl.in} +{ "in" } + +FUNCTION {bbl.pages} +{ "pp." } + +FUNCTION {bbl.page} +{ "p." } + +FUNCTION {titto.bbl.pages} % for journals +{ "" } + +FUNCTION {titto.bbl.page} % for journals +{ "" } + +FUNCTION {bbl.chapter} +{ "chap." } + +FUNCTION {bbl.techrep} +{ "Tech. Rep." } + +FUNCTION {bbl.mthesis} +{ "Master's thesis" } + +FUNCTION {bbl.phdthesis} +{ "Ph.D. thesis" } + +MACRO {jan} {"Jan."} + +MACRO {feb} {"Feb."} + +MACRO {mar} {"Mar."} + +MACRO {apr} {"Apr."} + +MACRO {may} {"May"} + +MACRO {jun} {"Jun."} + +MACRO {jul} {"Jul."} + +MACRO {aug} {"Aug."} + +MACRO {sep} {"Sep."} + +MACRO {oct} {"Oct."} + +MACRO {nov} {"Nov."} + +MACRO {dec} {"Dec."} + +MACRO {acmcs} {"ACM Comput. Surv."} + +MACRO {acta} {"Acta Inf."} + +MACRO {cacm} {"Commun. ACM"} + +MACRO {ibmjrd} {"IBM J. Res. Dev."} + +MACRO {ibmsj} {"IBM Syst.~J."} + +MACRO {ieeese} {"IEEE Trans. Software Eng."} + +MACRO {ieeetc} {"IEEE Trans. Comput."} + +MACRO {ieeetcad} + {"IEEE Trans. Comput. Aid. Des."} + +MACRO {ipl} {"Inf. Process. Lett."} + +MACRO {jacm} {"J.~ACM"} + +MACRO {jcss} {"J.~Comput. Syst. Sci."} + +MACRO {scp} {"Sci. Comput. Program."} + +MACRO {sicomp} {"SIAM J. Comput."} + +MACRO {tocs} {"ACM Trans. Comput. Syst."} + +MACRO {tods} {"ACM Trans. Database Syst."} + +MACRO {tog} {"ACM Trans. Graphic."} + +MACRO {toms} {"ACM Trans. Math. Software"} + +MACRO {toois} {"ACM Trans. Office Inf. Syst."} + +MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."} + +MACRO {tcs} {"Theor. Comput. Sci."} + +FUNCTION {bibinfo.check} +{ swap$ + duplicate$ missing$ + { + pop$ pop$ + "" + } + { duplicate$ empty$ + { + swap$ pop$ + } + { swap$ + pop$ + } + if$ + } + if$ +} +FUNCTION {bibinfo.warn} +{ swap$ + duplicate$ missing$ + { + swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ + "" + } + { duplicate$ empty$ + { + swap$ "empty " swap$ * " in " * cite$ * warning$ + } + { swap$ + pop$ + } + if$ + } + if$ +} +FUNCTION {format.url} +{ url empty$ + { "" } +% { "\urlprefix\url{" url * "}" * } + { "\url{" url * "}" * } % changed in titto-lncs-02.bst + if$ +} + +FUNCTION {format.doi} % added in splncs04.bst +{ doi empty$ + { "" } + { after.block 'output.state := + "\doi{" doi * "}" * } + if$ +} + +INTEGERS { nameptr namesleft numnames } + + +STRINGS { bibinfo} + +FUNCTION {format.names} +{ 'bibinfo := + duplicate$ empty$ 'skip$ { + 's := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv~}{ll}{, jj}{, f{.}.}" + format.name$ + bibinfo bibinfo.check + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + "," * + t "others" = + { + " " * bbl.etal * + } + { " " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ + } if$ +} +FUNCTION {format.names.ed} +{ + 'bibinfo := + duplicate$ empty$ 'skip$ { + 's := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{f{.}.~}{vv~}{ll}{ jj}" + format.name$ + bibinfo bibinfo.check + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + "," * + t "others" = + { + + " " * bbl.etal * + } + { " " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ + } if$ +} +FUNCTION {format.authors} +{ author "author" format.names +} +FUNCTION {get.bbl.editor} +{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } + +FUNCTION {format.editors} +{ editor "editor" format.names duplicate$ empty$ 'skip$ + { + " " * + get.bbl.editor +% capitalize + "(" swap$ * ")" * + * + } + if$ +} +FUNCTION {format.note} +{ + note empty$ + { "" } + { note #1 #1 substring$ + duplicate$ "{" = + 'skip$ + { output.state mid.sentence = + { "l" } + { "u" } + if$ + change.case$ + } + if$ + note #2 global.max$ substring$ * "note" bibinfo.check + } + if$ +} + +FUNCTION {format.title} +{ title + duplicate$ empty$ 'skip$ + { "t" change.case$ } + if$ + "title" bibinfo.check +} +FUNCTION {output.bibitem} +{ newline$ + "\bibitem{" write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := +} + +FUNCTION {n.dashify} +{ + 't := + "" + { t empty$ not } + { t #1 #1 substring$ "-" = + { t #1 #2 substring$ "--" = not + { "--" * + t #2 global.max$ substring$ 't := + } + { { t #1 #1 substring$ "-" = } + { "-" * + t #2 global.max$ substring$ 't := + } + while$ + } + if$ + } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + if$ + } + while$ +} + +FUNCTION {word.in} +{ bbl.in capitalize + ":" * + " " * } + +FUNCTION {format.date} +{ + month "month" bibinfo.check + duplicate$ empty$ + year "year" bibinfo.check duplicate$ empty$ + { swap$ 'skip$ + { "there's a month but no year in " cite$ * warning$ } + if$ + * + } + { swap$ 'skip$ + { + swap$ + " " * swap$ + } + if$ + * + remove.dots + } + if$ + duplicate$ empty$ + 'skip$ + { + before.all 'output.state := + " (" swap$ * ")" * + } + if$ +} +FUNCTION {format.btitle} +{ title "title" bibinfo.check + duplicate$ empty$ 'skip$ + { + } + if$ +} +FUNCTION {either.or.check} +{ empty$ + 'pop$ + { "can't use both " swap$ * " fields in " * cite$ * warning$ } + if$ +} +FUNCTION {format.bvolume} +{ volume empty$ + { "" } + { bbl.volume volume tie.or.space.prefix + "volume" bibinfo.check * * + series "series" bibinfo.check + duplicate$ empty$ 'pop$ + { emphasize ", " * swap$ * } + if$ + "volume and number" number either.or.check + } + if$ +} +FUNCTION {format.number.series} +{ volume empty$ + { number empty$ + { series field.or.null } + { output.state mid.sentence = + { bbl.number } + { bbl.number capitalize } + if$ + number tie.or.space.prefix "number" bibinfo.check * * + series empty$ + { "there's a number but no series in " cite$ * warning$ } + { bbl.in space.word * + series "series" bibinfo.check * + } + if$ + } + if$ + } + { "" } + if$ +} + +FUNCTION {format.edition} +{ edition duplicate$ empty$ 'skip$ + { + output.state mid.sentence = + { "l" } + { "t" } + if$ change.case$ + "edition" bibinfo.check + " " * bbl.edition * + } + if$ +} +INTEGERS { multiresult } +FUNCTION {multi.page.check} +{ 't := + #0 'multiresult := + { multiresult not + t empty$ not + and + } + { t #1 #1 substring$ + duplicate$ "-" = + swap$ duplicate$ "," = + swap$ "+" = + or or + { #1 'multiresult := } + { t #2 global.max$ substring$ 't := } + if$ + } + while$ + multiresult +} +FUNCTION {format.pages} +{ pages duplicate$ empty$ 'skip$ + { duplicate$ multi.page.check + { + bbl.pages swap$ + n.dashify + } + { + bbl.page swap$ + } + if$ + tie.or.space.prefix + "pages" bibinfo.check + * * + } + if$ +} +FUNCTION {format.journal.pages} +{ pages duplicate$ empty$ 'pop$ + { swap$ duplicate$ empty$ + { pop$ pop$ format.pages } + { + ", " * + swap$ + n.dashify + pages multi.page.check + 'titto.bbl.pages + 'titto.bbl.page + if$ + swap$ tie.or.space.prefix + "pages" bibinfo.check + * * + * + } + if$ + } + if$ +} +FUNCTION {format.journal.eid} +{ eid "eid" bibinfo.check + duplicate$ empty$ 'pop$ + { swap$ duplicate$ empty$ 'skip$ + { + ", " * + } + if$ + swap$ * + } + if$ +} +FUNCTION {format.vol.num.pages} % this function is used only for journal entries +{ volume field.or.null embolden + duplicate$ empty$ 'skip$ + { +% bbl.volume swap$ tie.or.space.prefix + titto.bbl.volume swap$ titto.space.prefix +% rationale for the change above: for journals you don't want "vol." label +% hence it does not make sense to attach the journal number to the label when +% it is short + "volume" bibinfo.check + * * + } + if$ + number "number" bibinfo.check duplicate$ empty$ 'skip$ + { + swap$ duplicate$ empty$ + { "there's a number but no volume in " cite$ * warning$ } + 'skip$ + if$ + swap$ + "(" swap$ * ")" * + } + if$ * + eid empty$ + { format.journal.pages } + { format.journal.eid } + if$ +} + +FUNCTION {format.chapter.pages} +{ chapter empty$ + 'format.pages + { type empty$ + { bbl.chapter } + { type "l" change.case$ + "type" bibinfo.check + } + if$ + chapter tie.or.space.prefix + "chapter" bibinfo.check + * * + pages empty$ + 'skip$ + { ", " * format.pages * } + if$ + } + if$ +} + +FUNCTION {format.booktitle} +{ + booktitle "booktitle" bibinfo.check +} +FUNCTION {format.in.ed.booktitle} +{ format.booktitle duplicate$ empty$ 'skip$ + { +% editor "editor" format.names.ed duplicate$ empty$ 'pop$ % changed by titto + editor "editor" format.names duplicate$ empty$ 'pop$ + { + " " * + get.bbl.editor +% capitalize + "(" swap$ * ") " * + * swap$ + * } + if$ + word.in swap$ * + } + if$ +} +FUNCTION {empty.misc.check} +{ author empty$ title empty$ howpublished empty$ + month empty$ year empty$ note empty$ + and and and and and + key empty$ not and + { "all relevant fields are empty in " cite$ * warning$ } + 'skip$ + if$ +} +FUNCTION {format.thesis.type} +{ type duplicate$ empty$ + 'pop$ + { swap$ pop$ + "t" change.case$ "type" bibinfo.check + } + if$ +} +FUNCTION {format.tr.number} +{ number "number" bibinfo.check + type duplicate$ empty$ + { pop$ bbl.techrep } + 'skip$ + if$ + "type" bibinfo.check + swap$ duplicate$ empty$ + { pop$ "t" change.case$ } + { tie.or.space.prefix * * } + if$ +} +FUNCTION {format.article.crossref} +{ + key duplicate$ empty$ + { pop$ + journal duplicate$ empty$ + { "need key or journal for " cite$ * " to crossref " * crossref * warning$ } + { "journal" bibinfo.check emphasize word.in swap$ * } + if$ + } + { word.in swap$ * " " *} + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.crossref.editor} +{ editor #1 "{vv~}{ll}" format.name$ + "editor" bibinfo.check + editor num.names$ duplicate$ + #2 > + { pop$ + "editor" bibinfo.check + " " * bbl.etal + * + } + { #2 < + 'skip$ + { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = + { + "editor" bibinfo.check + " " * bbl.etal + * + } + { + bbl.and space.word + * editor #2 "{vv~}{ll}" format.name$ + "editor" bibinfo.check + * + } + if$ + } + if$ + } + if$ +} +FUNCTION {format.book.crossref} +{ volume duplicate$ empty$ + { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ + pop$ word.in + } + { bbl.volume + capitalize + swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word * + } + if$ + editor empty$ + editor field.or.null author field.or.null = + or + { key empty$ + { series empty$ + { "need editor, key, or series for " cite$ * " to crossref " * + crossref * warning$ + "" * + } + { series emphasize * } + if$ + } + { key * } + if$ + } + { format.crossref.editor * } + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.incoll.inproc.crossref} +{ + editor empty$ + editor field.or.null author field.or.null = + or + { key empty$ + { format.booktitle duplicate$ empty$ + { "need editor, key, or booktitle for " cite$ * " to crossref " * + crossref * warning$ + } + { word.in swap$ * } + if$ + } + { word.in key * " " *} + if$ + } + { word.in format.crossref.editor * " " *} + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.org.or.pub} +{ 't := + "" + address empty$ t empty$ and + 'skip$ + { + t empty$ + { address "address" bibinfo.check * + } + { t * + address empty$ + 'skip$ + { ", " * address "address" bibinfo.check * } + if$ + } + if$ + } + if$ +} +FUNCTION {format.publisher.address} +{ publisher "publisher" bibinfo.warn format.org.or.pub +} + +FUNCTION {format.organization.address} +{ organization "organization" bibinfo.check format.org.or.pub +} + +FUNCTION {article} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + new.block + crossref missing$ + { + journal + "journal" bibinfo.check + "journal" output.check + add.blank + format.vol.num.pages output + format.date "year" output.check + } + { format.article.crossref output.nonnull + format.pages output + } + if$ +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {book} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + add.colon + } + { format.authors output.nonnull + add.colon + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + new.block + format.btitle "title" output.check + crossref missing$ + { format.bvolume output + new.block + new.sentence + format.number.series output + format.publisher.address output + } + { + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {booklet} +{ output.bibitem + format.authors output + add.colon + new.block + format.title "title" output.check + new.block + howpublished "howpublished" bibinfo.check output + address "address" bibinfo.check output + format.date output +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {inbook} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + add.colon + } + { format.authors output.nonnull + add.colon + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + new.block + format.btitle "title" output.check + crossref missing$ + { + format.bvolume output + format.chapter.pages "chapter and pages" output.check + new.block + new.sentence + format.number.series output + format.publisher.address output + } + { + format.chapter.pages "chapter and pages" output.check + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {incollection} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + format.bvolume output + format.chapter.pages output + new.sentence + format.number.series output + format.publisher.address output + format.edition output + format.date "year" output.check + } + { format.incoll.inproc.crossref output.nonnull + format.chapter.pages output + } + if$ +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {inproceedings} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + new.sentence % added by titto + format.bvolume output + format.pages output + new.sentence + format.number.series output + publisher empty$ + { format.organization.address output } + { organization "organization" bibinfo.check output + format.publisher.address output + } + if$ + format.date "year" output.check + } + { format.incoll.inproc.crossref output.nonnull + format.pages output + } + if$ +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {conference} { inproceedings } +FUNCTION {manual} +{ output.bibitem + author empty$ + { organization "organization" bibinfo.check + duplicate$ empty$ 'pop$ + { output + address "address" bibinfo.check output + } + if$ + } + { format.authors output.nonnull } + if$ + add.colon + new.block + format.btitle "title" output.check + author empty$ + { organization empty$ + { + address new.block.checka + address "address" bibinfo.check output + } + 'skip$ + if$ + } + { + organization address new.block.checkb + organization "organization" bibinfo.check output + address "address" bibinfo.check output + } + if$ + format.edition output + format.date output +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {mastersthesis} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.btitle + "title" output.check + new.block + bbl.mthesis format.thesis.type output.nonnull + school "school" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {misc} +{ output.bibitem + format.authors output + add.colon + title howpublished new.block.checkb + format.title output + howpublished new.block.checka + howpublished "howpublished" bibinfo.check output + format.date output +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry + empty.misc.check +} +FUNCTION {phdthesis} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.btitle + "title" output.check + new.block + bbl.phdthesis format.thesis.type output.nonnull + school "school" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {proceedings} +{ output.bibitem + editor empty$ + { organization "organization" bibinfo.check output + } + { format.editors output.nonnull } + if$ + add.colon + new.block + format.btitle "title" output.check + format.bvolume output + editor empty$ + { publisher empty$ + { format.number.series output } + { + new.sentence + format.number.series output + format.publisher.address output + } + if$ + } + { publisher empty$ + { + new.sentence + format.number.series output + format.organization.address output } + { + new.sentence + format.number.series output + organization "organization" bibinfo.check output + format.publisher.address output + } + if$ + } + if$ + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {techreport} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title + "title" output.check + new.block + format.tr.number output.nonnull + institution "institution" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {unpublished} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + format.date output +% new.block + format.url output +% new.block + format.note "note" output.check + fin.entry +} + +FUNCTION {default.type} { misc } +READ +FUNCTION {sortify} +{ purify$ + "l" change.case$ +} +INTEGERS { len } +FUNCTION {chop.word} +{ 's := + 'len := + s #1 len substring$ = + { s len #1 + global.max$ substring$ } + 's + if$ +} +FUNCTION {sort.format.names} +{ 's := + #1 'nameptr := + "" + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{ll{ }}{ ff{ }}{ jj{ }}" + format.name$ 't := + nameptr #1 > + { + " " * + namesleft #1 = t "others" = and + { "zzzzz" * } + { t sortify * } + if$ + } + { t sortify * } + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {sort.format.title} +{ 't := + "A " #2 + "An " #3 + "The " #4 t chop.word + chop.word + chop.word + sortify + #1 global.max$ substring$ +} +FUNCTION {author.sort} +{ author empty$ + { key empty$ + { "to sort, need author or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {author.editor.sort} +{ author empty$ + { editor empty$ + { key empty$ + { "to sort, need author, editor, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {author.organization.sort} +{ author empty$ + { organization empty$ + { key empty$ + { "to sort, need author, organization, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { "The " #4 organization chop.word sortify } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {editor.organization.sort} +{ editor empty$ + { organization empty$ + { key empty$ + { "to sort, need editor, organization, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { "The " #4 organization chop.word sortify } + if$ + } + { editor sort.format.names } + if$ +} +FUNCTION {presort} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.sort + { type$ "proceedings" = + 'editor.organization.sort + { type$ "manual" = + 'author.organization.sort + 'author.sort + if$ + } + if$ + } + if$ + " " + * + year field.or.null sortify + * + " " + * + title field.or.null + sort.format.title + * + #1 entry.max$ substring$ + 'sort.key$ := +} +ITERATE {presort} +SORT +STRINGS { longest.label } +INTEGERS { number.label longest.label.width } +FUNCTION {initialize.longest.label} +{ "" 'longest.label := + #1 'number.label := + #0 'longest.label.width := +} +FUNCTION {longest.label.pass} +{ number.label int.to.str$ 'label := + number.label #1 + 'number.label := + label width$ longest.label.width > + { label 'longest.label := + label width$ 'longest.label.width := + } + 'skip$ + if$ +} +EXECUTE {initialize.longest.label} +ITERATE {longest.label.pass} +FUNCTION {begin.bib} +{ preamble$ empty$ + 'skip$ + { preamble$ write$ newline$ } + if$ + "\begin{thebibliography}{" longest.label * "}" * + write$ newline$ + "\providecommand{\url}[1]{\texttt{#1}}" + write$ newline$ + "\providecommand{\urlprefix}{URL }" + write$ newline$ + "\providecommand{\doi}[1]{https://doi.org/#1}" + write$ newline$ +} +EXECUTE {begin.bib} +EXECUTE {init.state.consts} +ITERATE {call.type$} +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} +EXECUTE {end.bib} +%% End of customized bst file +%% +%% End of file `titto.bst'.
@@ -0,0 +1,80 @@
+% !TeX root = ../build/main.tex + +The Vocdoni Ballot Protocol defines a simple and efficient mechanism for casting and tallying votes in any type of election or collective decision-making process. Each voting process consists of one or more fields, and voters are required to provide a response for each field in their ballot. + +The responses in the ballot are represented as a sequence of natural numbers, each corresponding to the voter’s choice for the respective field. Results are accumulated into a single array. Each position in the array corresponds to the sum of all votes cast for that field across all voters. + +The ballot protocol is defined by a set of configurable variables that dictate how votes must be cast. This way the protocol can accommodate a wide range of voting processes and behaviors. + +\begin{enumerate} + \item \textbf{maxCount}: Defines the maximum number of fields in a ballot (max 64). + \item \textbf{maxValue}: The maximum allowable value for any field in a ballot (if greater than 0). + \item \textbf{minValue}: The minimum allowable value for any field in a ballot (default 0). + \item \textbf{uniqueValues}: Specifies whether voters can select the same value multiple times within a ballot (default false). + \item \textbf{maxTotalCost}: Limits the sum of all field values in a ballot (if greater than 0). + \item \textbf{minTotalCost}: Specifies a minimum required total sum of field values in a ballot (default 0) + \item \textbf{costExponent}: Defines the exponent used to calculate the "cost" of votes for each field (default 1 +\end{enumerate} + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.4, draft = false]{\figs/ballot-variables.png}} +\end{figure} + +\textbf{Example 1: Rating Candidates} + +Consider a voting process where voters are asked to rate three candidates: Lennon, Hendrix, and Joplin. Voters rate each candidate from 0 to 5 stars, and each vote is represented as an array where each position corresponds to the candidate’s rating. + +Configuration: + +\begin{itemize} + \item \texttt{maxCount}: 3 + \item \texttt{maxValue}: 5 + \item \texttt{uniqueValues}: Yes +\end{itemize} + +Ballots: + +\begin{itemize} + \item Vote 1: \texttt{[3, 2, 5]} (3 stars for Lennon, 2 stars for Hendrix, 5 stars for Joplin) + \item Vote 2: \texttt{[4, 3, 2]} + \item Vote 3: \texttt{[2, 4, 5]} +\end{itemize} + +After accumulating the votes: + +\begin{itemize} + \item Results Array: \texttt{[3+4+2, 2+3+4, 5+2+5] = [9, 9, 12]}\\ + Lennon received 9 points, Hendrix received 9 points, and Joplin received 12 points. +\end{itemize} + +\textbf{Example 2: Quadratic Voting for Resource Allocation} + +In a scenario where voters distribute a fixed number of credits across different options (e.g., selecting funding levels for NGOs), the ballot allows voters to assign multiple points, but the cost of casting multiple votes for a single option increases quadratically. + +Configuration: + +\begin{itemize} + \item \texttt{maxCount}: 4 + \item \texttt{maxTotalCost}: 12 (credits) + \item \texttt{costExponent}: 2 (quadratic) +\end{itemize} + +Ballots: + +\begin{itemize} + \item Vote 1: \texttt{[2, 2, 2, 0]} + \item Vote 2: \texttt{[1, 1, 3, 1]} + \item Vote 3: \texttt{[0, 2, 1, 2]} +\end{itemize} + + +After accumulating the votes: + + +\begin{itemize} + \item Results Array: \texttt{[2+1+0, 2+1+2, 2+3+1, 0+1+2] = [3, 5, 6, 3]} \\ + Each position in the array represents the total sum of credits allocated to each NGO. +\end{itemize} +
@@ -0,0 +1,33 @@
+% !TeX root = ../build/main.tex + +Below, we detail the components of the architecture that collectively support the operation and management of the voting system. + +\begin{figure}[h] + \centering + \fbox{ + \includegraphics[scale = 0.2, draft = false]{\figs/architecture.png}} +\end{figure} + +\subsection{Ethereum} + +An Ethereum compatible network is used as the source of truth for the voting system. By leveraging an EVM blockchain, the process management ensures that all transitions are immutable and verifiable by all participants. To this end, we implement several smart contracts. + +\begin{itemize} + \item \textbf{Process Management}: Responsible for the lifecycle management of voting processes. It includes the initiation, monitoring, execution, and closure of voting events. + + \item \textbf{Results Verification}: For each voting process, this smart contract maintains the integrity of the cast votes and process lifecycle. It verifies that each state transition committed by a ZK sequencer adheres to the predefined rules. + + \item \textbf{Sequencer Registry}: This smart contract keeps track of the existing available sequencers, stores the collateral to ensure good behavior, and it's used to coordinate the distributed key generation when a new Process is created. +\end{itemize} + +\subsection{Sequencer} + +The Sequencer is a specialized component designed to handle the voting process using zero-knowledge proof mechanisms. It ensures that all transactions related to this process are validated and sequenced. The Sequencers periodically commit the state of the voting process to Ethereum. + +\subsection{Frontend User Interface} + +The user interface serves as the primary interaction layer for voters and organizers. It provides tools and functionalities needed by organizers to set up, manage, and oversee elections. This interface simplifies the complexities involved in managing a decentralized vote. + +\subsection{Data Availability} + +For each voting process, the system needs to keep track of the current State Merkle Tree, which contains all information of such processes. A public data availability layer, ensures that all state transitions are available and verifiable and allows the participation of multiple sequencers within the same voting process.
@@ -0,0 +1,77 @@
+% !TeX root = ../build/main.tex + +Vocdoni Z employs a Distributed Key Generation (DKG) protocol that allows a group of participants (Sequencers) to jointly generate a public/private key pair for the ElGamal cryptosystem without any single participant knowing the complete private key. Instead, each participant holds a share of the private key, and only a threshold number of participants can collaborate to decrypt messages (the threshold is configurable). This enhances security by eliminating the need for a trusted dealer and protecting against single-point failures. + +\subsection{Properties} + +\begin{itemize} + \item \textbf{Decentralized Key Generation}: No single party knows the complete secret key. + \item \textbf{Coordinated via Ethereum}: The parties do not need to interact directly, they use an Ethereum Smart Contract to bootstrap the process and exchange the required information. + \item \textbf{Threshold Security}: A minimum number of participants (threshold) is required to reconstruct the secret. + \item \textbf{Verifiable Shares}: Parties and Ethereum can verify the correctness of the shares they receive. + \item \textbf{Scalability}: Supports any number of participants and configurable threshold. +\end{itemize} + +\subsection{Protocol Steps} + +\begin{enumerate} + \item \textbf{Initialization}: + \begin{itemize} + \item The Ethereum Smart Contract provides the initial parameters: + \begin{itemize} + \item \textbf{Threshold} $t$: Minimum number of participants required to decrypt messages. + \item \textbf{Total Participants} $n$: : Total number of sequencers involved. + \item \textbf{Elliptic Curve Parameters}: Choose a suitable elliptic curve with generator point $G$ and order $q$. + \end{itemize} + \end{itemize} + \item \textbf{Secret Polynomial Generation}: + \begin{itemize} + \item Each participant $P_i$ generates a random secret polynomial of degree $t-1$: + $$f_i (x) = a_{i,0} + a_{i, 1}x + a_{i,2}x^2 + \dots + a_{i, t-1}x^{t-1}$$ + \begin{itemize} + \item Coefficients $a_{i,j} \in \mathbb{Z}_q$ are randomly selected. + \item The constant term $a{i,0}$ is $P_i$'s individual secret. + \end{itemize} + \end{itemize} + \item \textbf{Commitment to Coefficients}: + \begin{itemize} + \item Participants compute public commitments to their polynomial coefficients: $C_{i,j} = a_{i,j}\cdot G$ + \begin{itemize} + \item These commitments are points on the elliptic curve and are published to all participants. + \item This ensures transparency and allows others to verify shares without revealing secrets. + \end{itemize} + \end{itemize} + \item \textbf{Share Computation}: + \begin{itemize} + \item Each participant computes shares for every other participant $P_j$: $s_{i,j} = f_i(j)$ + \begin{itemize} + \item The shares $s_{i,j} \in \mathbb{Z}_q$ are secret scalar values. + \end{itemize} + \end{itemize} + \item \textbf{Secure and Verified Distribution}: + \begin{itemize} + \item Shares are encrypted before distribution using a simplified version of the \textbf{Elliptic Curve Integrated Encryption Scheme (ECIES)}, since we only need to encrypt a scalar: + \item Each participant provides a zkSNARK proof to prove: + \begin{itemize} + \item The correctness of the encrypted share. + \item Compliance with the DKG protocol rules. + \end{itemize} + \item This allows the smart contract on Ethereum to verify the validity without revealing secrets. + \end{itemize} + \item \textbf{Aggregation of Shares}: + \begin{itemize} + \item Each participant computes their private key share by summing the shares received (including their own): $s_j = \sum_{i ^1}^ns_{i,j} \mod q$ + \item This becomes $P_j$'s portion of the collective private key. + \end{itemize} + \item \textbf{Public Key Computation}: + \begin{itemize} + \item Participants compute the collective public key: $PK = \sum_{i = 1}^n C_{i,0}$ + \begin{itemize} + \item Since $C_{i,0} = a_{i,0}\cdot G$, the public key is effectively: $PK = s\cdot G$ where $s = \sum_{i = 1}^n a_{i,0} \mod q$ is the collective private key (unknown to any single participant). + \end{itemize} + \end{itemize} + \item \textbf{Public Key Distribution}: + \begin{itemize} + \item Any of the participants can publish the collective public key $PK$ to the Ethereum smart contract. + \end{itemize} +\end{enumerate}
@@ -0,0 +1,85 @@
+% !TeX root = ../build/main.tex + +This chapter provides an overview of the operational workflow of the Vocdoni Z protocol, detailing the sequential phases and roles involved. The process includes the initialization of a voting event, distributed key generation, encrypted vote casting, vote verification, and accumulation, culminating in the publication and public verification of results. Each phase leverages advanced cryptographic techniques to ensure the integrity, privacy, and universal verifiability of the voting process. + +\subsection{Simplified Workflow Steps} + +\begin{enumerate} + \item \textbf{Organizer Creates a New Voting Process} + + \begin{itemize} + \item Prepare the census data. + \item Set voting details such as duration, options, type, etc. + \item Send the transaction to the Ethereum Process smart contract. + \end{itemize} + + \item \textbf{Sequencers Create the Distributed Threshold Encryption Key} + + \begin{itemize} + \item Use the Sequencer Registry smart contract to coordinate the Distributed Key Generation (DKG). + \item Provide collateral to ensure correct participation in the DKG. + \item Download all required data to handle the new vote, such as the census Merkle tree. + \end{itemize} + + \item \textbf{Voting Begins Once the Encryption Public Key (EPK) is Available} + + \item \textbf{Voters Cast Their Votes} + + \begin{itemize} + \item Choose any of the available sequencers. + \item Fetch their census Merkle proof to prove eligibility. + \item Use the EPK to encrypt their voting choice. + \item Generate a zkSNARK to prove the validity of the encrypted vote and adherence to ballot protocol rules. + \item Send the encrypted vote, Merkle proof, validify proof and identity proof to the sequencer. + \end{itemize} + + \item \textbf{Sequencers Verify and Accumulate the Votes} + + \begin{itemize} + \item Fetch Current State: Retrieve the current valid process state root from the Ethereum smart contract and the associated data from Ethereum blobs. + \item Generate a zkSNARK of state transition, proving: + \begin{itemize} + \item the validity of the zkSNARK proof provided by the voter. + \item the correct accumulation of votes from users, adding them to the process state. + \item the correct sum off the new encrypted votes using the homomorphic properties of ElGamal. + \item the new votes are from eligible users by checking the census Merkle proofs. + \item the new voters have not already voted by checking their nullifiers, or it is a correct vote overwrite + \item the data blob hash matches the data used to verify the transition. + \end{itemize} + \item Submit Updated State: Send the new state root to the smart contract and store the updated data in Ethereum blobs. + \end{itemize} + + \item \textbf{Smart Contract Verification of the State Transition} + + \begin{itemize} + \item Verify the zkSNARK proof provided by the sequencer. + \item Ensure the origin root corresponds to the current stored state root. + \item Confirm that the blob hash matches the one stored in Ethereum. + \end{itemize} + + \item \textbf{Repeat Until Voting Ends} + + \begin{itemize} + \item Sequencers accumulate more votes and create state transitions until the finalization of the process. + \end{itemize} + + \item \textbf{Create the Decryption Key} + + \begin{itemize} + \item Once voting is complete, sequencers publish their shares of the EPK to the Ethereum smart contract. + \item Decrypt Results: When the threshold of shares is reached, the results can be decrypted by anyone. + \item Sequencers receive reward for their correct participation depending on the number of sequenced votes. + \end{itemize} + + \item \textbf{Public Verification of the Final Results} + \begin{itemize} + \item After the voting period ends and the results are decrypted, anyone can verify the correctness of the final result. + \item Use the zkSNARK State proof and publicly available data on-chain to ensure the integrity and correctness of the entire voting process. + \end{itemize} +\end{enumerate} + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.3, draft = false]{\figs/workflow-simplified.png}} +\end{figure}
@@ -0,0 +1,24 @@
+% !TeX root = ../build/main.tex + +As quantum computing technology advances, it poses significant challenges to classical cryptographic schemes that underpin the security of digital systems, including voting platforms like Vocdoni Z. Ensuring that the system remains secure in the face of quantum threats is crucial for its longevity and trustworthiness. + +Quantum computers have the potential to solve certain mathematical problems exponentially faster than classical computers. Notably, Shor's algorithm allows quantum computers to efficiently factor large integers and compute discrete logarithms, undermining the security of widely used cryptographic schemes such as RSA, DSA, ECDSA, and the ElGamal cryptosystem. + +However, the design of Vocdoni Z incorporates mechanisms that preserve voter anonymity even in the face of future quantum attacks: + +\begin{itemize} + \item \textbf{Detachment of Identity and Encrypted Ballot}: The voter's identity and their encrypted ballot are decoupled through the use of a secret in the nullifier. The nullifier is computed as: + $$ N = \text{Hash}(\text{ProcessId} || s) $$ + where is a secret known only to the voter. This means that even if an adversary decrypts the encrypted ballots using a quantum computer, they cannot link a decrypted vote back to a voter's identity in the census without knowledge of the secret $s$. + \item \textbf{Quantum-Resistant Hash Functions}: The \textbf{Nullifier} and \textbf{Commitment} are computed using cryptographic hash functions that are believed to be resistant to quantum attacks (e.g., SHA-3). While Grover's algorithm can provide a quadratic speedup in searching for preimages, using sufficiently long hash outputs (e.g., 256 bits) mitigates this risk. +\end{itemize} + +To further safeguard against quantum threats, the following measures can be implemented in the futre: + +\begin{enumerate} + \item Adopt post-quantum signature schemes. Replace ECDSA/EdDSA with quantum-resistant algorithms such as \textbf{CRYSTALS-Dilithium}, \textbf{Falcon}, or \textbf{Rainbow}, which are based on hard lattice problems. + + \item Explore lattice-based homomorphic encryption schemes. Replace ElGamal cryptosystem with quantum-resistant alternatives such as the \textbf{Brakerski-Gentry-Vaikuntanathan (BGV)} scheme or the \textbf{Brakerski/Fan-Vercauteren (BFV)}. + + \item Adopt quantum-resistant zero-knowledge proof systems, such as zkSNARK constructions based on post-quantum assumptions or \textbf{zkSTARKs}. +\end{enumerate}
@@ -0,0 +1,32 @@
+% !TeX root = ../build/main.tex + +In democratic processes, the ability of voters to cast their votes freely, without undue influence or coercion, is crucial. A critical aspect of maintaining this freedom is ensuring receipt-freeness, preventing voters from being able to prove to third parties how they voted. Vocdoni Z implements receipt-freeness by leveraging the properties of the ElGamal cryptosystem, and zkSNARKs. + +\subsection{Ballor re-encryption} + +The ElGamal cryptosystem over elliptic curves supports additive homomorphism, allowing operations to be performed on ciphertexts that translate to addition on the underlying plaintexts. Re-encryption is a process that refreshes the randomness of a ciphertext without changing the underlying plaintext message. This makes computationally infeasible to link the original and re-encrypted ciphertexts. + +\subsection{Handling Receipts} + +To prevent voters from being able to prove how they voted, Vocdoni Z employs re-encryption of ballots by the Sequencers. When a voter submits an encrypted ballot, the Sequencer re-encrypts it before storing it in the state Merkle tree. + +This way, the system ensures that voters cannot produce a receipt of their vote by revealing r since the stored ciphertext no longer corresponds to r. This prevents vote-buying and coercion by third parties. + +\subsection{Handling Collusion} + +To further enhance receipt-freeness and mitigate the risk of collusion between voters and Sequencers, Vocdoni Z allows voters to overwrite their votes. A voter can submit multiple votes, with each new submission replacing the previous one. + +When a Sequencer receives a new vote from a voter who has already voted, it performs the following steps: + +\begin{enumerate} + \item \textbf{Detect Overwrite}: The Sequencer checks the state Merkle tree using the voter's nullifier to determine if the voter has previously cast a vote. + \item \textbf{Subtract Previous Vote}: The Sequencer takes the existing encrypted ballot and adds it to a "Subtractive Results" accumulator. This effectively negates the previous vote in the final tally. + \item \textbf{Add New Vote}: The new encrypted ballot is added to the "Results" accumulator. + \item \textbf{Update State Merkle Tree}: The Sequencer re-encrypts the new ballot and updates the state Merkle tree with this re-encrypted ballot. +\end{enumerate} + +\subsection{Concealing Vote Overwrites} + +To prevent observers from detecting when overwrites occur, the Sequencers regularly re-encrypt a random subset of ballots in the state Merkle tree during each state update. This process obscures the occurrence of overwrites, as re-encryptions are indistinguishable from standard re-randomizations performed for privacy enhancement. + +By re-encrypting random ballots, the system increases the entropy and makes it statistically improbable for an adversary to determine if a specific ballot was overwritten or simply re-randomized.
@@ -0,0 +1,97 @@
+% !TeX root = ../build/main.tex + +When a new voting process begins, the Sequencer initializes a new State, represented by the root hash of a Merkle tree. This tree encapsulates all essential information about the voting process, including process parameters, voter registry (census), ballot configurations, and initial results. + +For each new batch of votes, the Sequencer updates the state by generating a zkSNARK proof that \textbf{validates the state transition from the current Root to a new Root}. This proof is submitted on-chain for settlement. By doing so, we maintain an immutable and verifiable record of the voting process on the blockchain. + +This approach allows anyone to access the latest verified state of the voting process from the Results Verification smart contract, along with the necessary data to process subsequent state updates. The system's design enables multiple Sequencers to participate in tallying votes. They can take the current State Root and its associated data to construct the next state, incorporating new votes into the tally. This decentralization of Sequencers helps prevent potential censorship and reinforces the robustness of the voting process. + +\subsection{Maintaining the Chain} + +The chain of integrity is maintained through a combination of smart contract enforcement and strict zkSNARK circuit constraints. This ensures that each state transition is valid and builds upon the last accepted state without requiring additional mechanisms. + +\begin{itemize} + \item \textbf{Sequential State Roots}: Each state transition updates the Merkle tree from a previous root (`Root1`) to a new root (`Root2`) after processing a batch of votes. + \item \textbf{Smart Contract Enforcement}: The smart contract verifies that the `Root1` provided in the zkSNARK proof matches the last committed state root stored on-chain. This guarantees that all transitions are sequential and based on the latest accepted state. + \item \textbf{Proof Validation}: The smart contract uses the zkSNARK verification key to validate the submitted proof. A valid proof confirms that the transition from `Root1` to `Root2` adheres to all protocol rules enforced by the circuit. + \item \textbf{State Update}: Upon successful verification, the smart contract updates the stored state root hash to`Root2`, ensuring an immutable and continuous chain of states. +\end{itemize} + +\subsection{State Merkle Tree Structure} + +The State tree contains some special addresses (indices) for storing some required data regarding the voting process: + +\begin{itemize} + \item Address `0x0`: \textbf{Process Identifier}: stores a unique identifier for the voting process. + \item Address `0x1`: \textbf{Census Root and Type}: contains the information necessary to validate vote proofs. + \item Address `0x2`: \textbf{Ballot Mode}: encodes rules for validating votes, such as the maximum number of selectable options. + \item Address `0x3`: \textbf{Threshold Encryption key}: the public key used to encrypt the votes. + \item Address `0x4`: \textbf{Added Results Accumulator}: stores the aggregated encrypted voting results that need to be added. + \item Address `0x5`: \textbf{Subtract Results Accumulator}: stores the aggregated encrypted voting results that need to be subtracted. + \item Any Address: \textbf{Vote addresses}: are stored within the State tree pointing to a voter's identity commitment. Each commitment is a 32-byte hash derived from the voter's unique information and a secret. + \item Any Address: \textbf{Vote nullifiers}: are stored within the State tree to prevent double voting and to allow vote overwrite. Each nullifier is a 32-byte hash derived from the voter's commitment and a secret. +\end{itemize} + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.3, draft = false]{\figs/merkle-tree-state.png}} +\end{figure} + +\subsection{The Initial State} + +The voting process begins with an initial state where the Merkle Tree Root is established and published on the Process Management smart contract. Predefined parameters are included, but the results are initialized to zero, and no nullifiers are present. + +The Process Organizer transaction, contains the initial root and the necessary Merkle proofs. These proofs verify that the initial parameters are correct according to the voting process information and that no additional information is stored. Since the `ProcessId` of the initial state is a unique identifier, there won't be duplicate roots for different processes. + +\subsection{State Transition} + +To validate and process state transitions, \textbf{we employ a zkSNARK circuit that enforces all protocol constraints}. This circuit proves that the transition from the previous state Root to the new state Root is valid based on the newly processed votes. + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.12, draft = false]{\figs/state-transition.png}} +\end{figure} + +The circuit have the following inputs (the public ones are required to verify the proof). + +\begin{itemize} + \item \textbf{Public Inputs:} + \begin{itemize} + \item Previous State Root (Root1): The Merkle tree root before the state transition. + \item New State Root (Root2): The Merkle tree root after the state transition. + \item Blob Data Commitment (blobCommitment): The commitment to the data blob containing the new votes. + \end{itemize} + \item \textbf{Private Inputs:} + \begin{itemize} + \item Votes: The list of new votes being processed, including census proofs and authentication data. + \item Merkle Proofs of nullifier inclusion: Proofs that each voter nullifier is included in the census. + \item Merkle Proofs of results update: Proofs that the process results have been correctly updated. + \item Merkle Tree Update Witnesses: Necessary data (e.g., Merkle paths) to update the Merkle tree from Root1 to Root2. + \item Process Parameters: Retrieved from Root1 within the circuit. + \end{itemize} +\end{itemize} + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.3, draft = false]{\figs/circuit-inputs.png}} +\end{figure} + +The following constraints must be enforced by the circuit. + +\begin{itemize} + \item \textbf{Immutable Process Parameters}: Ensure that critical process parameters (such as `censusRoot` or `processId`) retrieved from `Root1` remain consistent and are not altered in the transition. + \item \textbf{Vote Validity}: Validate that each vote proof is correct. + \item \textbf{Voter Eligibility}: Confirm that each voter is included in the census by verifying Merkle proofs of inclusion against the `censusRoot` retrieved from `Root1`. + \item \textbf{Nullifier Non-Existence}: Ensure that the nullifier for each vote does not exist in the current state (`Root1`), preventing double voting. + \item \textbf{Nullifier Addition}: Correctly add each new nullifier to the state, resulting in `Root2`, updating the Merkle tree accordingly. + \item \textbf{Results Update}: Ensure that the voting results are accurately updated by adding the new votes to the previous results retrieved from `Root1`, so that `results2 = results1 + votes`. + \item \textbf{Blob Data Integrity}: Confirm that the data used in the circuit (votes, nullifiers) corresponds to the `blobCommitment` provided as a public input, ensuring that the votes processed are exactly those published in the data blob. + \item \textbf{State Transition Validity}: Ensure that the new state root (`Root2`) is correctly computed from `Root1` by applying the validated votes and updates to the Merkle tree. +\end{itemize} + +\subsection{Finalization of the Voting Process} + +At the conclusion of the voting period, the smart contract ceases to accept new state updates, effectively finalizing the process. The final State is then available on-chain for verification, providing an immutable record of the voting outcome.
@@ -0,0 +1,32 @@
+% !TeX root = ../build/main.tex + +\begin{enumerate} + \item \textbf{zkSNARKs}\\ + + \textit{Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge} are a crucial component in ensuring the validity of the voting results. Voters generate zkSNARK proofs to prove that their encrypted votes comply with the rules and requirements of the voting process, without revealing any information about their choices. Sequencers also generate zkSNARK proofs to prove the correct aggregation of votes into the shared state that maintains the status of the voting process.\\ + + \item \textbf{Merkle Trees}\\ + + Merkle trees are employed to create a cryptographic representation of both the voter registry (census) and the voting process state: + + \begin{itemize} + \item \textbf{Census}: Each voter is assigned a Merkle proof, which they use to prove their eligibility to vote. This mechanism ensures efficient and secure verification of voter eligibility. + \item \textbf{State}: The voting process state is represented as a Merkle tree, with new votes being added to the tree. The root of this Merkle tree is stored on Ethereum, allowing multiple sequencers to participate in the voting phase and ensuring consistency. + \end{itemize} + + \item \textbf{Threshold Homomorphic Encryption} \\ + + Threshold homomorphic encryption, specifically the \textbf{ElGamal} scheme, is used to allow the summation of encrypted votes without decrypting them. This enables the system to compute the final vote tally while maintaining the privacy of individual votes. By ensuring that no vote is exposed during the aggregation phase, this scheme preserves voter confidentiality and provides anti-coercion protection, as voters cannot prove their choice to a third party once an encrypted vote is added. \\ + + \item \textbf{Distributed Key Generation (DKG)} \\ + + The DKG protocol is used to generate the encryption public key (EPK) in a decentralized manner. Sequencers collaboratively participate in the DKG process to create the EPK, ensuring that no single party has full control over the key. This approach guarantees that the encryption key remains secure and that decryption of results is only possible when a threshold number of sequencers publish their shares. \\ + + \item \textbf{Ethereum Smart Contracts} \\ + + Ethereum smart contracts are employed to orchestrate the voting process, manage state transitions, and store critical data, such as the current state root and encryption public keys. These smart contracts provide a trustless environment, ensuring that all participants can be confident that the voting process rules are correctly enforced. \\ + + \item \textbf{Ethereum Data Blobs (EIP-4844)} \\ + + EIP-4844 is used for data availability, enabling the storage of state transition data in the form of Ethereum data blobs. This mechanism allows sequencers to collaborate on the construction and verification of the voting process state, ensuring efficient and decentralized data availability. +\end{enumerate}
@@ -0,0 +1,7 @@
+% !TeX root = ../build/main.tex + +Vocdoni Z ensures user anonymity by anonymizing both the ballot and the voter's identity, employing cryptographic techniques that maintain privacy even in the face of future quantum computing threats. The system uses the \textbf{ElGamal Homomorphic Encryption scheme} to encrypt ballots, allowing for the aggregation of votes without revealing individual choices. Since encrypted ballots are stored in public repositories like Ethereum blobs—which, although removed after some weeks, may still be accessible—it is crucial to prevent any association between decrypted ballots and voter identities. By decoupling the voter's identity from their encrypted ballot through the use of secrets and cryptographic hashes, even if an adversary decrypts the ballots in the future, they cannot link them back to individual voters. + +The identity anonymization acts as a \textbf{double security factor}, enhancing long-term privacy. While the Sequencer processing the vote can identify the voter (since voters submit proofs of eligibility and commitments), there is no incentive for the Sequencer to make this information public, and the Sequencer cannot decrypt the voter's ballot because they do not possess the private decryption keys. This ensures that voter choices remain confidential. + +We have adopted this partial identity anonymization because generating fully anonymous proofs using zkSNARKs directly from digital signatures (e.g., ECDSA/EdDSA or RSA) is computationally intensive for client-side devices like browsers and smartphones. Our priority is to support a wide range of devices, making the system accessible to as many voters as possible. In the future, as cryptographic technology advances and client devices become more powerful, we anticipate being able to generate such zero-knowledge proofs efficiently on the client side. This would enable us to fully anonymize the client's identity in addition to the ballot, further enhancing user privacy without compromising accessibility or user experience.
@@ -0,0 +1,190 @@
+% !TeX root = ../build/main.tex + +Vocdoni Z introduces the Vocdoni token (VOC) as a key element of its decentralized voting ecosystem, playing a crucial role in the protocol's sustainability. +The token serves multiple utility functions that align the incentives of all participants (voting organizers, sequencers, and voters) ensuring the integrity, efficiency, and security of the voting system. + +\subsection{Roles of the VOC} + +\begin{enumerate} + \item \textbf{Collateral for Sequencers}: Sequencers are required to stake VOC tokens as a collateral to participate in the protocol. This serves as a safeguard to ensure responsible participation. If a sequencer behaves improperly (whether due to malicious intent or unintentional errors) it can face penalties, including the loss of part of its staked tokens. + \item \textbf{Incentive Mechanism}: Sequencers earn rewards in VOC tokens based on their contribution to processing valid votes and maintaining the network. Rewards are proportional to the number of valid votes successfully added to the shared state. + \item \textbf{Payment for Voting Processes}: Voting processes organizers use VOC tokens to cover the costs of creating and managing voting processes. The costs depend on factors like the size of the voting registry, the voting period's duration, and the desired level of security (based on the number of participating sequencers). + \item \textbf{Governance}: The VOC token facilitates decentralized governance by giving the token holders the right to participate in the project governance. Token holders can influence on important matters such as protocol upgrades, ecosystem development, and other initiatives aimed to enhance various aspects of Vocdoni Z. This ensures that the project evolves in a transparent, community-driven manner. +\end{enumerate} + +\subsection{Economics for Organizers} + +Organizers of voting processes pay fees in VOC tokens to create and manage their voting events. These fees cover operational costs and incentivize the sequencers. + +The costs of voting processes vary based on the following factors: + +\begin{itemize} + \item \textbf{Maximum Number of Votes}: Larger voter registries require more resources for processing. + \item \textbf{Voting Duration}: Longer voting periods demand extended resource commitments from sequencers. + \item \textbf{Security Level}: Organizers can adjust the number of participating sequencers to balance between cost and security needs. +\end{itemize} + +Fees must be paid upfront but can be partially reimbursed. The formula for calculating the reimbursement is: + +$$ \text{Reimbursement} = \text{TotalCost} - \text{TotalReward} - \text{BaseCost} $$ + +Given that there is a list of eligible voters for each voting process, organizers should reserve space equal to the maximum number of voters, anticipating that all eligible voters may participate. However, since this is unlikely, a portion of the reward pool may be reimbursed. + +The components of this formula are defined in the following sections. + +\subsection{Voting process cost model} + +The process cost model defines how the cost for a given process is calculated. +Considering sequencer-specific capacities, process duration, number of voters and security costs, we define following components formula: + +$$ \text{totalCost} = \text{baseCost} + \text{capacityCost} + \text{durationCost} + \text{securityCost} $$ + +\subsubsection{Components definition} + +\begin{itemize} + \item \textit{baseCost}: The base cost is a fixed fee charged by the sequencer to set up a voting process based on a fixed value plus the number of and a fixed factor. It is independent of the process duration, or the security level. This part cannot be reimbursed thus is a portion of the that will alwways be rewarded to the sequencers. + $$ baseCost = fixedCost + maxVotes \cdot p $$ + Where: + \begin{itemize} + \item $fixedCost$ is a fixed base fee defined into the protocol. + \item $maxVotes$ is the maximum number of votes of a given voting process. + \item $p$ is a small lineal factor defined into the protocol. + \end{itemize} + + \item $capacityCost$: It defines the cost given the current occupancy of the sequencer network. This component models the cost of reserving space for voting processes, relative to the number of sequencers available, the number of running voting processes and the maximum numbers of voters. The cost increases non-linearly as the number available sequencers approaches to the total number of sequencers and the number of running voting processes grows, so when there are fewer sequencers available and big number of voting processes running, the capacity becomes more valuable. + $$ + k_1 \cdot \left( \frac{\text{totalVotingProcesses}}{totalSequencers - usedSequencers + \epsilon} \cdot maxVotes \right)^a + $$ + \begin{itemize} + \item $k_1$: A scaling factor controlling the impact of sequencers usage. + \item $totalVotingProcesses$: The total number of running voting processes. + \item $totalSequencers$: The total number of registered sequencers. + \item $usedSequencers$: The number of sequencers that are already handling other voting processes. + \item $a$: An exponent that controls how sharply the cost increases as the used capacity approaches the total available capacity. In other words, it controls the non-linearity of the cost increase. + \item $\epsilon$: Is a very small number that avoids zero division. + \end{itemize} + + \item $durationCost$: This component models the cost of running the process for a specific duration, where longer processess incur more cost. The scaling is non-linear, meaning that shorter processes are more cost-efficient, while longer processes are increasingly expensive. + + It is expected to have a minimum and maximum duration thresholds (e.g 1 hour to 1 year). + + $$ k_2 \cdot processDuration^b $$ + + \begin{itemize} + \item $k_2$: A scaling factor for the process duration. + \item $processDuration$: The duration of the process in hours. + \item $b$: An exponent that controls the non-linear scaling of the process duration. + \end{itemize} + + \item $securityCost$: The security cost models the use of multiple sequencers to ensure a secure process. The cost scales exponentially based on the number of sequencers used, but with diminishing returns as the number of sequencers approaches the total available sequencers: + + $$ k_3 \cdot e^{c \cdot \left( \frac{\text{numSequencers}}{\text{totalSequencers}} \right)^d} $$ + + \begin{itemize} + \item $k_3$: A scaling factor controlling the overall weight of security cost. + \item $c$: Controls the steepness of the exponential scaling for security costs. + \item $numSequencers$: The number of sequencers used in this process. + \item $totalSequencers$: The total number of available sequencers in the network. + \item $d$: An exponent controlling how fast the security cost increases as the number of sequencers approaches the total available sequencers. + \end{itemize} +\end{itemize} + +\subsubsection{Constrains} + +There is the need to enforce some constrains in the formula in order to avoid impracticable scenarios. + +\begin{itemize} + \item If $processDuration > maxDuration$ then: $totalCost = \infty$ + \item If $numSequencers > totalSequencers$ then: $totalCost = \infty$ +\end{itemize} + +\subsection{Economics for Sequencers} + +To become a sequencer and earn rewards, participants must stake VOC tokens as collateral. This collateral is locked during the sequencer registry in the Sequencer Registry smart contract and can be withdrawn upon the sequencer commitments are fulfilled. + +Sequencers \textbf{receive rewards} based on: + +\begin{itemize} + \item The number of \textbf{votes} they include in the shared state. + \item The number of \textbf{vote rewrites} they include in the shared state. + \begin{itemize} + \item A vote rewrite can be either a vote overwrite (a voter casting another vote that overwrites the previous one) or a vote re-encryption (made by the sequencer). Rewriting votes enables more flexibility for the voter and is a key mechanism for the receipt-freeness. + \item It is expected for the sequencers to maximize the number of vote rewrites because there is no way to distinguish between a vote overwrite and a vote re-encryption. This is considered a positive behavior because it contributes to the receipt-freeness mechanism of the protocol. + \item A vote and a vote rewrite are distinguishable because the former include a nullifier that has not ever been included in a specific process. + \item Given that each sequencer will submit a ZK proof validating the state transition into the settlement layer smart contract it is straight forward to count the number of votes and the number of vote rewrites processed by each sequencer. + \item Sequencers can allow vote rewrites up to $T$ times the number of new votes for any state transition. $T$ will be defined as a constant in the protocol. + \end{itemize} + \item The number of \textbf{non-processed votes} in relation to the maximum number of voters. +\end{itemize} + +The total reward obtained can be expressed as: + +$$ sequencerReward_i = R \cdot \left( \frac{\text{votes}_i}{\text{maxVotes}} \right) + W \cdot \left( \frac{\text{voteRewrites}_i}{\text{totalRewrites}} \right) $$ + +And subject to the constraints: + +$$ \frac{\text{voteRewrites}_i}{\text{votes}_i} \leq T$$ + +$$ totalReward = R + W $$ + +$$ R > W $$ + +\begin{itemize} + \item $R > W$ since the sequencers must prioritize processing votes and not be incetivized to just rewrite existing votes. +\end{itemize} + +Where: + +\begin{itemize} + \item $R$: A part of the reward pool allocated for a specific voting process. + \item $votes_i$: The number of votes processed by the sequencer for a specific voting process. + \item $maxVotes$: The maximum number of voters participating in a voting process. + \item $W$: A part of the reward pool allocated for a specific voting process. + \item $voteRewrites_i$: The number of vote rewrites processed by the sequencer for a specific voting process. + \item $totalRewrites$: The total number of vote rewrites for a specific process. +\end{itemize} + +\subsubsection{Penalties:} + +\begin{itemize} + \item Non-Participation: Sequencers who fail to meet their obligation, not providing key shares during the tally phase, can have their collateral slashed. + Penalites for a sequencer can be expressed as: + $$ SlashedAmount_i = s \cdot StakedCollateral_i $$ + Where: + \begin{itemize} + \item $SlashedAmount_i$: The total slashed amount for a given sequencer. + \item $s$: The slashing coefficient $0 \leq s \leq 1$. + \item $StakedCollateral_i$: The amount of VOC tokens staked by a given sequencer. + \end{itemize} +\end{itemize} + +\subsection{Summary} + +The total cost formula combines four main components: + +\begin{enumerate} + \item A base cost for setting up the process. + \item A capacity cost based on the number of voters, the total running processes and available sequencer capacity. + \item A duration cost based on how long the process lasts. + \item A security cost based on the number of sequencers used, with diminishing returns for using more than a certain number. +\end{enumerate} + +The proposed formula ensures that: + +\begin{itemize} + \item Small processes are cost-efficient. + \item Larger processes or processes using a high proportion of available sequencer capacity incur higher costs. + \item The cost of security increases rapidly if more sequencers are used, but adding sequencers beyond a certain point leads to diminishing returns. + \item Impractical scenarios cannot be reached. +\end{itemize} + +\subsubsection{Notes on optimization} + +In the model presented we can clearly see that there are conflicting objectives from the two main actors: + +\begin{itemize} + \item The organizer (the "buyer" of services) wants to minimize the cost of running the process. + \item The sequencers (the "sellers" of capacity) want to maximize their rewards. A sequencer can decide whether to participate based on expected profits. +\end{itemize} + +These are naturally conflicting objectives that can be modeled as a strategic game. However, modeling this equilibrium for the protocol it is not in the scope on this document and will be presented in a separate piece.
@@ -0,0 +1,48 @@
+% !TeX root = ../build/main.tex + + +\subsection{Abstract} + +Vocdoni Z is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and anonymous digital voting. Leveraging recent advancements in zero-knowledge proofs and blockchain technology, Vocdoni Z transitions to a \textbf{specialized zkRollup} system that inherits network security from settlement layers like Ethereum Mainnet. The system \textbf{relies exclusively on cryptographic proofs} to ensure integrity and security, eliminating the need for centralized authorities. By integrating \textbf{zkSNARKs and threshold homomorphic encryption} (ElGamal), Vocdoni Z enables end-to-end verifiability, privacy, and trustlessness in the voting process. The protocol employs a distributed key generation among sequencers, coordinated via Ethereum smart contracts, and utilizes Ethereum data blobs (EIP-4844) for data availability. With a focus on \textbf{accessibility, scalability, receipt-freeness, and automation}, Vocdoni Z aims to facilitate high-frequency, low-cost voting, fostering mass adoption of e-voting and simplifying civil participation. Finally, the introduction of the \textbf{Vocdoni Token} (VOC) aligns incentives among participants, ensuring the system's sustainability and enabling decentralized governance. + +Moreover, the design of Vocdoni Z is grounded in practicality; all components have been implemented using current technologies and have undergone proof-of-concept testing. This ensures that the proposed architecture is not merely theoretical but a viable solution ready for short-term deployment. + +\subsection{Vision and background} + +Voĉdoni, meaning “to give voice” in Esperanto, embodies our mission to empower civil society from the grassroots level. We aim to build essential primitives and tools that enable any collective—from small groups to millions of citizens—to be heard, regardless of their circumstances or available resources. + +Our philosophy envisions voting beyond traditional nation-state elections; we see it as a collective signaling mechanism with cryptographic guarantees of integrity and outcome. + +To address the challenge, we developed a end-to-end verifiable and anonymous voting system designed to work on any device, including smartphones. We also successfuly deployed an infrastructure that maximizes resilience, neutrality, and transparency. + +In 2018, when Vocdoni began, zkSNARKs was just an emerging technology. We chose to base our solution on a customized Byzantine Fault Tolerant L1 blockchain called Vochain. This allowed us to achieve scalability (approximately 700 transactions per second), to leverage advanced cryptographic tools that are prohibitively expensive on EVM-based blockchains, and enable users to send voting transactions without costs. + +This experience has provided us with invaluable insights that have enabled us to overcome technical and operational challenges. Although this solution has effectively met user requirements and demonstrated its viability, further development is essential for its widespread adoption as a \textbf{universal voting protocol}. + +Vocdoni Z represents the evolution of the Vocdoni voting protocol. It integrates smart contracts for orchestration, a zkSNARK-based state machine for verifying and accumulating votes, and a decentralized data availability layer to ensure censorship resistance. + +\subsection{Design principles} + +To build the Vocdoni Z Stack, we adhere to the following design principles: + +\begin{enumerate} + \item \textbf{Cryptography as the Source of Truth}: We rely exclusively on cryptographic proofs to ensure the integrity and security of the voting process. By trusting only in cryptography, we eliminate the need for centralized authorities, making the system inherently secure and transparent. + + \item \textbf{Trustlessness}: Our system operates without requiring trust in any single party. Through cryptographic protocols and decentralized infrastructure, we ensure system integrity and prevent compromise from any malicious actor. + + \item \textbf{End-to-End Verifiability}: Every voter can verify their ballot from casting to result computation (individual verifiability). Additionally, any third party can audit the election data to confirm results (universal verifiability) and verify that each vote comes from a uniquely registered voter (eligibility verifiability). Transparent cryptographic mechanisms make this possible. + + \item \textbf{Composability}: The system is modular, consisting of interchangeable components that can be rearranged or integrated with external systems via adaptable interfaces. This allows for redundancy, flexibility, and seamless integration with third-party applications, exemplified by our voting-as-a-service APIs. + + \item \textbf{Accessibility}: Vocdoni’s voting platform (App) is open source, universally available and user-friendly. The interface is intuitive for all users, including those less familiar with technology, and accommodates voters that use assistive technologies like screen readers. + + \item \textbf{Open Source}: By releasing our code openly, we invite anyone to audit and contribute, enhancing security and fostering community engagement. Transparency prevents security through obscurity and accelerates innovation. + + \item \textbf{Resilience}: We design for robustness against hardware failures, network outages, and censorship. Infrastructure decentralization and distributed ownership enhance system availability and resistance to attacks. + + \item \textbf{Scalability}: Our solution processes votes at high throughput, exceeding current requirements to accommodate future growth. The decentralized infrastructure scales organically as usage increases, ensuring consistent performance. + + \item \textbf{Receipt-freeness}: To mitigate risks of collusion, coercion, and vote-buying, the system enables voters to verify their votes without being able to prove to others how they voted, thus reducing incentives for coercion and bribery. Additionally, voters are allowed to overwrite their votes while maintaining secrecy. + + \item \textbf{Automation}: We minimize human intervention through smart contracts and cryptographic protocols, reducing costs and human error. Automation ensures consistent operation and frees resources for voter support and auditing. +\end{enumerate}
@@ -0,0 +1,125 @@
+% !TeX root = ../build/main.tex + +In the Vocdoni Z system, a vote comprises several components that work together to ensure secure, private, and verifiable voting. These components are: + +\begin{enumerate} + \item Process Identifier + \item Census Proof + \item Identity Commitment + \item Nullifier + \item Encrypted Ballot and Zero-Knowledge Proof (ZKP) + \item Signature +\end{enumerate} + +Below, we detail each component and its role in the voting process. + +\begin{enumerate} + \item \textbf{Process Identifier} \\ + + The \textbf{Process Identifier} (\texttt{ProcessId}) is a unique 32-byte number that uniquely identifies a specific voting process within the Vocdoni Z ecosystem. It encapsulates essential information, including the rules and constraints for ballots and the unique identifier of the Vocdoni Z blockchain instance.\\ + + \item \textbf{Census Proof} \\ + + The \textbf{Census Proof} serves as the voter's identity verification mechanism, ensuring that only eligible voters can participate. Depending on the process configuration, the voter provides: + \begin{itemize} + \item \textbf{Merkle Tree-Based Proof}: A Merkle proof showing inclusion in the census. + \item \textbf{Credential Service Provider (CSP)}: A credential issued by a trusted third party. \\ + \end{itemize} + + \item \textbf{Identity Commitment}\\ + + The \textbf{Commitment} $C$ is used to prevent a voter from registering multiple nullifiers and to avoid collisions if different voters choose the same secret. + + $$ C = \text{Hash} (\text{Address} || ProcessId || s). $$ + + \begin{itemize} + \item \textbf{Stored in State Merkle Tree (SMT)}: Indexed by the voter's address. + \item \textbf{Prevents Multiple Registrations}: Each address can have only one commitment, ensuring a voter cannot register multiple secrets. + \item \textbf{Collision Resistance}: Including the address in $C$ ensures that commitments are unique even if voters choose the same secret $s$. + \end{itemize} + + The secret $s$ can be implemented from different ways or a combination of them, such as: + + \begin{itemize} + \item A secure enough Password introduced by the user. + \item A signature of a specific text. + \item A random input that the user must store to allow potential vote overwrite.\\ + \end{itemize} + + \item \textbf{Nullifier} \\ + + The \textbf{Nullifier} $N$ is a 32-byte hash used to: + + \begin{itemize} + \item \textbf{Prevent Double Voting}: Ensures each voter can cast only one vote or overwrite their previous vote. + \item \textbf{Allow Vote Overwriting}: Voters can submit a new vote with the same nullifier to replace their previous vote. + \item \textbf{Provide Anonymity}: Cannot be linked back to the voter's identity without knowledge of the secret $s$. + \end{itemize} + + $$ N = \text{Hash}(\text{C} || s) $$ + + \item \textbf{Encrypted Ballot and Zero-Knowledge Proof (ZKP)} \\ + + The ballot contains the voter's selections encoded according to the ballot protocol rules. To ensure privacy, the ballot is encrypted using the ElGamal cryptosystem over elliptic curves, which allows homomorphic combination of encrypted votes. + + \textbf{Encryption process}: + + \begin{itemize} + \item The voter's choice $m$ is encoded as a point on the elliptic curve. + \item The voter selects a random scalar $k \in [1, n-1]$, where is the order of the elliptic curve group. + \item Compute the ciphertext components: + \begin{itemize} + \item $C_1 = k \cdot G$ + \item $C_2 = M + k \cdot H$ + \end{itemize} + \item The ciphertext is the pair $(C_1, C_2)$. + \end{itemize} + + + \textbf{Zero-Knowledge Proof (ZKP)}: + + The voter generates a ZKP to prove the correctness of the ballot and encryption process: + + \begin{enumerate} + \item \textbf{Correctness of Encryption}: Ensures the ciphertext $(C_1, C_2)$ is correctly computed from the plaintext message $M$ and random scalar $k$. + \item \textbf{Compliance with Ballot Protocol Rules}: The plaintext vote adheres to the ballot protocol constraints, such as valid choices and allowed number of selections. + \item \textbf{Correct Computation of Commitment and Nullifier}: + \begin{itemize} + \item \textbf{Commitment}: $C = \text{Hash} (\text{Address} || ProcessId || s).$ + \item \textbf{Nullifier}: $N = \text{Hash}(\text{C} || s)$. + \item The voter knows the secret linking the commitment and nullifier. + \end{itemize} + \end{enumerate} + + \textbf{Inputs to the ZKP Circuit}: + + \begin{itemize} + \item \textbf{Public Inputs}: + \begin{itemize} + \item Encrypted Ballot $(C_1, C_2)$. + \item Ballot Protocol Configuration. + \item Encryption Parameters. + \item Voter's Weight + \item Commitment $C$. + \item Nullifier $N$. + \end{itemize} + \item \textbf{Private Inputs}: + \begin{itemize} + \item Plaintext Vote $m$. + \item Secret $s$. + \item Random Scalar $k$. + \item Voter's Address (used internally in the computation of $C$). + \end{itemize} + \end{itemize} + + \begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.3, draft = false]{\figs/vote-circuit-inputs.png}} + \end{figure} + + + \item \textbf{Signature}\\ + + The \textbf{Signature} authenticates the vote and ensures that it was cast by a legitimate voter. The voter signs necessary components using their private key, depending on the census configuration (e.g., ECDSA, EdDSA, RSA). +\end{enumerate}
@@ -0,0 +1,57 @@
+% !TeX root = ../build/main.tex + +In the Vocdoni Z system, the privacy of the voting process is ensured through the use of a \textbf{Threshold Homomorphic Encryption Scheme}. Specifically, the \textbf{Threshold ElGamal Cryptosystem over elliptic curves} is used. This cryptosystem provides both homomorphic and threshold properties essential for secure and verifiable digital voting. + +Encrypted messages can be combined to produce an encryption of the sum of the original plaintexts without decrypting them. In the context of voting, this allows for the secure aggregation of votes while keeping the voter's choice private. + +\begin{enumerate} + \item \textbf{Collaborative Key Generation:} + \begin{itemize} + \item The public key is generated collaboratively among the sequencers without any single party knowing the entire private key. + \item Utilizes a \textbf{Distributed Key Generation (DKG)} protocol to share the private key $s$ among $n$ sequencers using a threshold scheme. + \end{itemize} + \item \textbf{Encryption}: Given a message $m$ encoded as a point $M(M = mG)$ on the elliptic curve: + \begin{itemize} + \item Select a random scalar $k \in [1, n-1]$ and consider $H = sG$. + \item Compute: + \begin{itemize} + \item $C_1 = k\cdot G$ + \item $C_2 = M + k \cdot H$ + \end{itemize} + \item The ciphertext is $(C_1, C_2)$. + \end{itemize} + + \item \textbf{Homomorphic Addition}: The ElGamal cryptosystem over elliptic curves supports additive homomorphism for messages represented as points: + \begin{itemize} + \item Given two ciphertexts $(C_1^{(1)}, C_2^{(1)})$ and $(C_1^{(2)}, C_2^{(2)})$, their component-wise addition yields: + \begin{itemize} + \item $C_1^{\text{sum}} = C_1^{(1)} + C_1^{(2)}$ + \item $C_2^{\text{sum}} = C_2^{(1)} + C_2^{(2)}$ + \end{itemize} + \item The aggregated ciphertext decrypts to the sum of the messages: + \begin{itemize} + \item $M^{\text{sum}} = M_1 + M_2$ + \end{itemize} + \end{itemize} + + \item \textbf{Decryption}: + + \begin{itemize} + \item To decrypt an aggregated ciphertext (total sum of votes), a minimum number of sequencers (the threshold ) must provide their partial decryption shares. Each Sequencer compute $D_i = s_i \cdot C_1$ + \item \textbf{Combine Partial Decryptions}: + \begin{itemize} + \item Use Lagrange interpolation to combine the $D_i$ and recover $s\cdot C_1$. + \item Substract from $_c2$ to obtain the aggregated message point: + \begin{itemize} + \item $M^{\text{sum}} = C_2 + s \cdot C_1$ + \end{itemize} + \item Extract the message $m$ from $M$ by solving the discrete logarithm: + \begin{itemize} + \item $m = \log_G M$ + \end{itemize} + \end{itemize} + \end{itemize} + + For solving the discrete logarithm problem and compute the final results, since the message is small, it can be done via brute-force search or using the algorithm \textbf{baby-step giant-step}. + +\end{enumerate}
@@ -0,0 +1,335 @@
+@misc{nakamoto2012bitcoin, + author = {Nakamoto, Satoshi}, + title = {Bitcoin: A peer-to-peer electronic cash system}, + url = {http://www.bitcoin.org/bitcoin.pdf}, + year = 2009 +} + +@inproceedings{grassi2021poseidon, + title={Poseidon: A New Hash Function for Zero-Knowledge Proof Systems}, + author={Grassi, Lorenzo and Khovratovich, Dmitry and Rechberger, Christian and Roy, Arnab and Schofnegger, Markus}, + booktitle={30th USENIX Security Symposium (USENIX Security 21)}, + pages={519--535}, + year={2021} +} + +@article{gabizon2019plonk, + title={Plon{K}: Permutations over lagrange-bases for oecumenical noninteractive arguments of knowledge}, + author={Gabizon, Ariel and Williamson, Zachary J and Ciobotaru, Oana}, + journal={Cryptology ePrint Archive}, + year={2019} +} + +@inproceedings{kate2010constant, + title={Constant-size commitments to polynomials and their applications}, + author={Kate, Aniket and Zaverucha, Gregory M and Goldberg, Ian}, + booktitle={International conference on the theory and application of cryptology and information security}, + pages={177--194}, + year={2010}, + organization={Springer} +} + +@inproceedings{fuchsbauer2018algebraic, + title={The algebraic group model and its applications}, + author={Fuchsbauer, Georg and Kiltz, Eike and Loss, Julian}, + booktitle={Annual International Cryptology Conference}, + pages={33--62}, + year={2018}, + organization={Springer} +} + +@misc{rfc7693, + series = {Request for Comments}, + number = 7693, + howpublished = {RFC 7693}, + publisher = {RFC Editor}, + note = {Available online: \url{ https://www.rfc-editor.org/info/rfc7693} (accessed on 1 June 2022)}, + author = {Markku-Juhani O. Saarinen and Jean-Philippe Aumasson}, + title = {{The BLAKE2 Cryptographic Hash and Message Authentication Code (MAC)}}, + pagetotal = 30, + year = 2015, + month = nov, +} + +@article{diffie1976new, + title={New directions in cryptography}, + author={Diffie, Whitfield and Hellman, Martin}, + journal={IEEE Transactions on Information Theory}, + volume={22}, + number={6}, + pages={644--654}, + year={1976}, + publisher={IEEE} +} + +@article{van2013cryptonote, + title={CryptoNote v 2.0}, + author={Van Saberhagen, Nicolas}, + year={2013} +} + +@inproceedings{schnorr1989efficient, + title={Efficient identification and signatures for smart cards}, + author={Schnorr, Claus-Peter}, + booktitle={Conference on the Theory and Application of Cryptology}, + pages={239--252}, + year={1989}, + organization={Springer} +} + +@inproceedings{fiat1986prove, + title={How to prove yourself: Practical solutions to identification and signature problems}, + author={Fiat, Amos and Shamir, Adi}, + booktitle={Conference on the theory and application of cryptographic techniques}, + pages={186--194}, + year={1986}, + organization={Springer} +} + +@inproceedings{pointcheval1996security, + title={Security proofs for signature schemes}, + author={Pointcheval, David and Stern, Jacques}, + booktitle={International conference on the theory and applications of cryptographic techniques}, + pages={387--398}, + year={1996}, + organization={Springer} +} + +@inproceedings{pedersen1991non, + title={Non-interactive and information-theoretic secure verifiable secret sharing}, + author={Pedersen, Torben Pryds}, + booktitle={Annual international cryptology conference}, + pages={129--140}, + year={1991}, + organization={Springer} +} + +@article{bertoni2011cryptographic, + title={Cryptographic sponges}, + author={Bertoni, Guido and Daemen, Joan and Peeters, Micha{\"e}l and Van Assche, Gilles}, + npte={Available online: \url{https://keccak.team/files/CSF-0.1.pdf} (accessed on 1 June 2022)}, + year={2011} +} + +@article{nakamoto2008bitcoin, + title={Bitcoin: A peer-to-peer electronic cash system}, + author={Nakamoto, Satoshi}, + journal={Decentralized Business Review}, + year={2008} +} + +@article{hopwood2016zcash, + title={Zcash protocol specification}, + author={Hopwood, Daira and Bowe, Sean and Hornby, Taylor and Wilcox, Nathan}, + journal={GitHub: San Francisco, CA, USA}, + pages={1}, + year={2016} +} + +@misc{cryptoeprint:2017/1066, + author = {Benedikt Bünz and Jonathan Bootle and Dan Boneh and Andrew Poelstra and Pieter Wuille and Greg Maxwell}, + title = {Bulletproofs: Short Proofs for Confidential Transactions and More}, + howpublished = {Cryptology ePrint Archive, Paper 2017/1066}, + year = {2017}, + note = {\url{https://eprint.iacr.org/2017/1066}}, + url = {https://eprint.iacr.org/2017/1066} +} + +@inproceedings{sasson2014zerocash, + title={Zerocash: Decentralized anonymous payments from bitcoin}, + author={Sasson, Eli Ben and Chiesa, Alessandro and Garman, Christina and Green, Matthew and Miers, Ian and Tromer, Eran and Virza, Madars}, + booktitle={2014 IEEE symposium on security and privacy}, + pages={459--474}, + year={2014}, + organization={IEEE} +} + +@misc{gdpr, + author = {}, + title = {Regulation ({EU}) 2016/679 of the {E}uropean {P}arliament and of the {C}ouncil of 27 {A}pril 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing {D}irective 95/46/{EC} ({G}eneral {D}ata {P}rotection {R}egulation) ({T}ext with {EEA} relevance)}, + note={Available online: \url{http://data.europa.eu/eli/reg/2016/679/oj} (accessed on 1 June 2022)} +} + +@inproceedings{mixer, +author = {Tran, Muoi and Luu, Loi and Kang, Min Suk and Bentov, Iddo and Saxena, Prateek}, +title = {Obscuro: A Bitcoin Mixer Using Trusted Execution Environments}, +year = {2018}, +isbn = {9781450365697}, +publisher = {Association for Computing Machinery}, +address = {New York, NY, USA}, +url = {https://doi.org/10.1145/3274694.3274750}, +doi = {10.1145/3274694.3274750}, +booktitle = {Proceedings of the 34th Annual Computer Security Applications Conference}, +pages = {692–701}, +numpages = {10}, +keywords = {Trusted Execution Environments, Mixer, Intel SGX, Bitcoin, Anonymity}, +location = {San Juan, PR, USA}, +series = {ACSAC '18} +} + +@misc{ccpa, + author = {}, + howpublished = {An act to add {T}itle 1.81.5 (commencing with {S}ection 1798.100) to {P}art 4 of {D}ivision 3 of the {C}ivil {C}ode, relating to privacy.}, + title = {{AB}-375 {P}rivacy: personal information: businesses.}, + year = {2018}, + note={Available online: \url{https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=201720180AB375} (accessed on 1 June 2022)} +} + +@misc{ethereum, + author = {Dr. Gavin Wood}, + title = {Ethereum: A Secure Decentralised Generalised Transaction Ledger - Berlin Version}, + year = {2022}, + url={https://ethereum.github.io/yellowpaper/paper.pdf} +} + +@incollection{reid2013analysis, + title={An analysis of anonymity in the bitcoin system}, + author={Reid, Fergal and Harrigan, Martin}, + booktitle={Security and privacy in social networks}, + pages={197--223}, + year={2013}, + publisher={Springer} +} + +@incollection{herrera2014research, + title={Research and challenges on bitcoin anonymity}, + author={Herrera-Joancomart{\'\i}, Jordi}, + booktitle={Data privacy management, autonomous spontaneous security, and security assurance}, + pages={3--16}, + year={2014}, + publisher={Springer} +} + +@inproceedings{bonneau2014mixcoin, + title={Mixcoin: Anonymity for bitcoin with accountable mixes}, + author={Bonneau, Joseph and Narayanan, Arvind and Miller, Andrew and Clark, Jeremy and Kroll, Joshua A and Felten, Edward W}, + booktitle={International Conference on Financial Cryptography and Data Security}, + pages={486--504}, + year={2014}, + organization={Springer} +} + +@inproceedings{groth2016size, + title={On the size of pairing-based non-interactive arguments}, + author={Groth, Jens}, + booktitle={Annual international conference on the theory and applications of cryptographic techniques}, + pages={305--326}, + year={2016}, + organization={Springer} +} + +@inproceedings{bootle2016efficient, + title={Efficient zero-knowledge arguments for arithmetic circuits in the discrete log setting}, + author={Bootle, Jonathan and Cerulli, Andrea and Chaidos, Pyrros and Groth, Jens and Petit, Christophe}, + booktitle={Annual International Conference on the Theory and Applications of Cryptographic Techniques}, + pages={327--357}, + year={2016}, + organization={Springer} +} + +@inproceedings{gennaro2013quadratic, + title={Quadratic span programs and succinct NIZKs without PCPs}, + author={Gennaro, Rosario and Gentry, Craig and Parno, Bryan and Raykova, Mariana}, + booktitle={Annual International Conference on the Theory and Applications of Cryptographic Techniques}, + pages={626--645}, + year={2013}, + organization={Springer} +} + +@inproceedings{danezis2014square, + title={Square span programs with applications to succinct NIZK arguments}, + author={Danezis, George and Fournet, C{\'e}dric and Groth, Jens and Kohlweiss, Markulf}, + booktitle={International Conference on the Theory and Application of Cryptology and Information Security}, + pages={532--550}, + year={2014}, + organization={Springer} +} + +@article{goodell2019concise, + title={Concise Linkable Ring Signatures and Forgery Against Adversarial Keys}, + author={Goodell, Brandon and Noether, Sarang and Blue, Arthur}, + journal={Cryptology ePrint Archive}, + year={2019} +} + +@incollection{noether2020triptych, + title={Triptych: logarithmic-sized linkable ring signatures with applications}, + author={Noether, Sarang and Goodell, Brandon}, + booktitle={Data Privacy Management, Cryptocurrencies and Blockchain Technology}, + pages={337--354}, + year={2020}, + publisher={Springer} +} + +@article{zcashBLS, + title={Implementation of the {BLS}12-381 pairing-friendly elliptic curve construction}, + author={Bowe, Sean and Grigg, Jack}, + note={Available online: \url{https://github.com/zkcrypto/bls12_381} (accessed on 1 June 2022)} +} + +@article{zcashJubJub, + title={Implementation of the {J}ubjub elliptic curve group}, + author={Bowe, Sean and Ogilvie-Wigley, Eirik and and Grigg, Jack}, + note={Available online: \url{https://github.com/zkcrypto/jubjub} (accessed on 1 June 2022)} +} + +@book{katz2020introduction, + title={Introduction to modern cryptography}, + author={Katz, Jonathan and Lindell, Yehuda}, + year={2020}, + publisher={CRC press} +} + +@inproceedings{merkle1987digital, + title={A digital signature based on a conventional encryption function}, + author={Merkle, Ralph C}, + booktitle={Conference on the theory and application of cryptographic techniques}, + pages={369--378}, + year={1987}, + organization={Springer} +} + +@techreport{dworkin2007nist, + title={{NIST} Special Publication 800-38D: Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC}, + author={Dworkin, Morris}, + year={2007}, + institution={National Institute of Standards and Technology}, + url={https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf} +} + +@article{elgamal1985public, + title={A Public Key Cryptosystem and a Signature Scheme Based on Discrete Logarithms}, + author={ElGamal, Taher}, + journal={IEEE Transactions on Information Theory}, + volume={31}, + number={4}, + pages={469--472}, + year={1985}, + publisher={IEEE}, + doi={10.1109/TIT.1985.1057074} +} + + +@InProceedings{jakobsson1996designated, + author="Jakobsson, Markus and Sako, Kazue and Impagliazzo, Russell", + editor="Maurer, Ueli", + title="Designated Verifier Proofs and Their Applications", + booktitle="Advances in Cryptology --- EUROCRYPT '96", + year="1996", + publisher="Springer Berlin Heidelberg", + address="Berlin, Heidelberg", + pages="143--154", + isbn="978-3-540-68339-1" +} + +@inproceedings{damgaard2000practical, + author = {Damgård, Ivan and Koprowski, Maciej}, + year = {2000}, + month = {12}, + pages = {}, + title = {Practical Threshold RSA Signatures Without a Trusted Dealer}, + volume = {2045}, + isbn = {978-3-540-42070-5}, + journal = {Lecture Notes in Computer Science}, + doi = {10.1007/3-540-44987-6_10} +}
@@ -0,0 +1,1218 @@
+% LLNCS DOCUMENT CLASS -- version 2.21 (12-Jan-2022) +% Springer Verlag LaTeX2e support for Lecture Notes in Computer Science +% +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesClass{llncs}[2022/01/12 v2.21 +^^J LaTeX document class for Lecture Notes in Computer Science] +% Options +\let\if@envcntreset\iffalse +\DeclareOption{envcountreset}{\let\if@envcntreset\iftrue} +\DeclareOption{citeauthoryear}{\let\citeauthoryear=Y} +\DeclareOption{oribibl}{\let\oribibl=Y} +\let\if@custvec\iftrue +\DeclareOption{orivec}{\let\if@custvec\iffalse} +\let\if@envcntsame\iffalse +\DeclareOption{envcountsame}{\let\if@envcntsame\iftrue} +\let\if@envcntsect\iffalse +\DeclareOption{envcountsect}{\let\if@envcntsect\iftrue} +\let\if@runhead\iffalse +\DeclareOption{runningheads}{\let\if@runhead\iftrue} + +\let\if@openright\iftrue +\let\if@openbib\iffalse +\DeclareOption{openbib}{\let\if@openbib\iftrue} + +% languages +\let\switcht@@therlang\relax +\def\ds@deutsch{\def\switcht@@therlang{\switcht@deutsch}} +\def\ds@francais{\def\switcht@@therlang{\switcht@francais}} + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} + +\ProcessOptions + +\LoadClass[twoside]{article} +\RequirePackage{multicol} % needed for the list of participants, index +\RequirePackage{aliascnt} + +\setlength{\textwidth}{12.2cm} +\setlength{\textheight}{19.3cm} +\renewcommand\@pnumwidth{2em} +\renewcommand\@tocrmarg{3.5em} +% +\def\@dottedtocline#1#2#3#4#5{% + \ifnum #1>\c@tocdepth \else + \vskip \z@ \@plus.2\p@ + {\leftskip #2\relax \rightskip \@tocrmarg \advance\rightskip by 0pt plus 2cm + \parfillskip -\rightskip \pretolerance=10000 + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \@tempdima #3\relax + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + {#4}\nobreak + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% + \par}% + \fi} +% +\def\switcht@albion{% +\def\abstractname{Abstract.} +\def\ackname{Acknowledgement.} +\def\andname{and} +\def\lastandname{\unskip, and} +\def\appendixname{Appendix} +\def\chaptername{Chapter} +\def\claimname{Claim} +\def\conjecturename{Conjecture} +\def\contentsname{Table of Contents} +\def\corollaryname{Corollary} +\def\definitionname{Definition} +\def\examplename{Example} +\def\exercisename{Exercise} +\def\figurename{Fig.} +\def\keywordname{{\bf Keywords:}} +\def\indexname{Index} +\def\lemmaname{Lemma} +\def\contriblistname{List of Contributors} +\def\listfigurename{List of Figures} +\def\listtablename{List of Tables} +\def\mailname{{\it Correspondence to\/}:} +\def\noteaddname{Note added in proof} +\def\notename{Note} +\def\partname{Part} +\def\problemname{Problem} +\def\proofname{Proof} +\def\propertyname{Property} +\def\propositionname{Proposition} +\def\questionname{Question} +\def\remarkname{Remark} +\def\seename{see} +\def\solutionname{Solution} +\def\subclassname{{\it Subject Classifications\/}:} +\def\tablename{Table} +\def\theoremname{Theorem}} +\switcht@albion +% Names of theorem like environments are already defined +% but must be translated if another language is chosen +% +% French section +\def\switcht@francais{%\typeout{On parle francais.}% + \def\abstractname{R\'esum\'e.}% + \def\ackname{Remerciements.}% + \def\andname{et}% + \def\lastandname{ et}% + \def\appendixname{Appendice}% + \def\chaptername{Chapitre}% + \def\claimname{Pr\'etention}% + \def\conjecturename{Hypoth\`ese}% + \def\contentsname{Table des mati\`eres}% + \def\corollaryname{Corollaire}% + \def\definitionname{D\'efinition}% + \def\examplename{Exemple}% + \def\exercisename{Exercice}% + \def\figurename{Fig.}% + \def\keywordname{{\bf Mots-cl\'e:}}% + \def\indexname{Index}% + \def\lemmaname{Lemme}% + \def\contriblistname{Liste des contributeurs}% + \def\listfigurename{Liste des figures}% + \def\listtablename{Liste des tables}% + \def\mailname{{\it Correspondence to\/}:}% + \def\noteaddname{Note ajout\'ee \`a l'\'epreuve}% + \def\notename{Remarque}% + \def\partname{Partie}% + \def\problemname{Probl\`eme}% + \def\proofname{Preuve}% + \def\propertyname{Caract\'eristique}% +%\def\propositionname{Proposition}% + \def\questionname{Question}% + \def\remarkname{Remarque}% + \def\seename{voir}% + \def\solutionname{Solution}% + \def\subclassname{{\it Subject Classifications\/}:}% + \def\tablename{Tableau}% + \def\theoremname{Th\'eor\`eme}% +} +% +% German section +\def\switcht@deutsch{%\typeout{Man spricht deutsch.}% + \def\abstractname{Zusammenfassung.}% + \def\ackname{Danksagung.}% + \def\andname{und}% + \def\lastandname{ und}% + \def\appendixname{Anhang}% + \def\chaptername{Kapitel}% + \def\claimname{Behauptung}% + \def\conjecturename{Hypothese}% + \def\contentsname{Inhaltsverzeichnis}% + \def\corollaryname{Korollar}% +%\def\definitionname{Definition}% + \def\examplename{Beispiel}% + \def\exercisename{\"Ubung}% + \def\figurename{Abb.}% + \def\keywordname{{\bf Schl\"usselw\"orter:}}% + \def\indexname{Index}% +%\def\lemmaname{Lemma}% + \def\contriblistname{Mitarbeiter}% + \def\listfigurename{Abbildungsverzeichnis}% + \def\listtablename{Tabellenverzeichnis}% + \def\mailname{{\it Correspondence to\/}:}% + \def\noteaddname{Nachtrag}% + \def\notename{Anmerkung}% + \def\partname{Teil}% +%\def\problemname{Problem}% + \def\proofname{Beweis}% + \def\propertyname{Eigenschaft}% +%\def\propositionname{Proposition}% + \def\questionname{Frage}% + \def\remarkname{Anmerkung}% + \def\seename{siehe}% + \def\solutionname{L\"osung}% + \def\subclassname{{\it Subject Classifications\/}:}% + \def\tablename{Tabelle}% +%\def\theoremname{Theorem}% +} + +% Ragged bottom for the actual page +\def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil +\global\let\@textbottom\relax}} + +\renewcommand\small{% + \@setfontsize\small\@ixpt{11}% + \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ + \abovedisplayshortskip \z@ \@plus2\p@ + \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ + \def\@listi{\leftmargin\leftmargini + \parsep 0\p@ \@plus1\p@ \@minus\p@ + \topsep 8\p@ \@plus2\p@ \@minus4\p@ + \itemsep0\p@}% + \belowdisplayskip \abovedisplayskip +} + +\frenchspacing +\widowpenalty=10000 +\clubpenalty=10000 + +\setlength\oddsidemargin {63\p@} +\setlength\evensidemargin {63\p@} +\setlength\marginparwidth {90\p@} + +\setlength\headsep {16\p@} + +\setlength\footnotesep{7.7\p@} +\setlength\textfloatsep{8mm\@plus 2\p@ \@minus 4\p@} +\setlength\intextsep {8mm\@plus 2\p@ \@minus 2\p@} + +\setcounter{secnumdepth}{2} + +\newcounter {chapter} +\renewcommand\thechapter {\@arabic\c@chapter} + +\newif\if@mainmatter \@mainmattertrue +\newcommand\frontmatter{\cleardoublepage + \@mainmatterfalse\pagenumbering{Roman}} +\newcommand\mainmatter{\cleardoublepage + \@mainmattertrue\pagenumbering{arabic}} +\newcommand\backmatter{\if@openright\cleardoublepage\else\clearpage\fi + \@mainmatterfalse} + +\renewcommand\part{\cleardoublepage + \thispagestyle{empty}% + \if@twocolumn + \onecolumn + \@tempswatrue + \else + \@tempswafalse + \fi + \null\vfil + \secdef\@part\@spart} + +\def\@part[#1]#2{% + \ifnum \c@secnumdepth >-2\relax + \refstepcounter{part}% + \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% + \else + \addcontentsline{toc}{part}{#1}% + \fi + \markboth{}{}% + {\centering + \interlinepenalty \@M + \normalfont + \ifnum \c@secnumdepth >-2\relax + \huge\bfseries \partname~\thepart + \par + \vskip 20\p@ + \fi + \Huge \bfseries #2\par}% + \@endpart} +\def\@spart#1{% + {\centering + \interlinepenalty \@M + \normalfont + \Huge \bfseries #1\par}% + \@endpart} +\def\@endpart{\vfil\newpage + \if@twoside + \null + \thispagestyle{empty}% + \newpage + \fi + \if@tempswa + \twocolumn + \fi} + +\newcommand\chapter{\clearpage + \thispagestyle{empty}% + \global\@topnum\z@ + \@afterindentfalse + \secdef\@chapter\@schapter} +\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}#1}% + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \chaptermark{#1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \@afterheading + \fi} +\def\@makechapterhead#1{% +% \vspace*{50\p@}% + {\centering + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \large\bfseries \@chapapp{} \thechapter + \par\nobreak + \vskip 20\p@ + \fi + \fi + \interlinepenalty\@M + \Large \bfseries #1\par\nobreak + \vskip 40\p@ + }} +\def\@schapter#1{\if@twocolumn + \@topnewpage[\@makeschapterhead{#1}]% + \else + \@makeschapterhead{#1}% + \@afterheading + \fi} +\def\@makeschapterhead#1{% +% \vspace*{50\p@}% + {\centering + \normalfont + \interlinepenalty\@M + \Large \bfseries #1\par\nobreak + \vskip 40\p@ + }} + +\renewcommand\section{\@startsection{section}{1}{\z@}% + {-18\p@ \@plus -4\p@ \@minus -4\p@}% + {12\p@ \@plus 4\p@ \@minus 4\p@}% + {\normalfont\large\bfseries\boldmath + \rightskip=\z@ \@plus 8em\pretolerance=10000 }} +\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% + {-18\p@ \@plus -4\p@ \@minus -4\p@}% + {8\p@ \@plus 4\p@ \@minus 4\p@}% + {\normalfont\normalsize\bfseries\boldmath + \rightskip=\z@ \@plus 8em\pretolerance=10000 }} +\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% + {-18\p@ \@plus -4\p@ \@minus -4\p@}% + {-0.5em \@plus -0.22em \@minus -0.1em}% + {\normalfont\normalsize\bfseries\boldmath}} +\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% + {-12\p@ \@plus -4\p@ \@minus -4\p@}% + {-0.5em \@plus -0.22em \@minus -0.1em}% + {\normalfont\normalsize\itshape}} +\renewcommand\subparagraph[1]{\typeout{LLNCS warning: You should not use + \string\subparagraph\space with this class}\vskip0.5cm +You should not use \verb|\subparagraph| with this class.\vskip0.5cm} + +\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{"00} +\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{"01} +\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{"02} +\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{"03} +\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{"04} +\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{"05} +\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{"06} +\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{"07} +\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{"08} +\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{"09} +\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{"0A} + +\let\footnotesize\small + +\if@custvec +\def\vec#1{\mathchoice{\mbox{\boldmath$\displaystyle#1$}} +{\mbox{\boldmath$\textstyle#1$}} +{\mbox{\boldmath$\scriptstyle#1$}} +{\mbox{\boldmath$\scriptscriptstyle#1$}}} +\fi + +\def\squareforqed{\hbox{\rlap{$\sqcap$}$\sqcup$}} +\def\qed{\ifmmode\squareforqed\else{\unskip\nobreak\hfil +\penalty50\hskip1em\null\nobreak\hfil\squareforqed +\parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi} + +\def\getsto{\mathrel{\mathchoice {\vcenter{\offinterlineskip +\halign{\hfil +$\displaystyle##$\hfil\cr\gets\cr\to\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr\gets +\cr\to\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr\gets +\cr\to\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +\gets\cr\to\cr}}}}} +\def\lid{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil +$\displaystyle##$\hfil\cr<\cr\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr<\cr +\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr<\cr +\noalign{\vskip1pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +<\cr +\noalign{\vskip0.9pt}=\cr}}}}} +\def\gid{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil +$\displaystyle##$\hfil\cr>\cr\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr>\cr +\noalign{\vskip1.2pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr>\cr +\noalign{\vskip1pt}=\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +>\cr +\noalign{\vskip0.9pt}=\cr}}}}} +\def\grole{\mathrel{\mathchoice {\vcenter{\offinterlineskip +\halign{\hfil +$\displaystyle##$\hfil\cr>\cr\noalign{\vskip-1pt}<\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr +>\cr\noalign{\vskip-1pt}<\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr +>\cr\noalign{\vskip-0.8pt}<\cr}}} +{\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr +>\cr\noalign{\vskip-0.3pt}<\cr}}}}} +\def\bbbr{{\rm I\!R}} %reelle Zahlen +\def\bbbm{{\rm I\!M}} +\def\bbbn{{\rm I\!N}} %natuerliche Zahlen +\def\bbbf{{\rm I\!F}} +\def\bbbh{{\rm I\!H}} +\def\bbbk{{\rm I\!K}} +\def\bbbp{{\rm I\!P}} +\def\bbbone{{\mathchoice {\rm 1\mskip-4mu l} {\rm 1\mskip-4mu l} +{\rm 1\mskip-4.5mu l} {\rm 1\mskip-5mu l}}} +\def\bbbc{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm C$}\hbox{\hbox +to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}}} +\def\bbbq{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm +Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.8\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle\rm Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.8\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle\rm Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.7\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm Q$}\hbox{\raise +0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.7\ht0\hss}\box0}}}} +\def\bbbt{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm +T$}\hbox{\hbox to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle\rm T$}\hbox{\hbox +to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle\rm T$}\hbox{\hbox +to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm T$}\hbox{\hbox +to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}}}} +\def\bbbs{{\mathchoice +{\setbox0=\hbox{$\displaystyle \rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\hbox +to0pt{\kern0.55\wd0\vrule height0.5\ht0\hss}\box0}} +{\setbox0=\hbox{$\textstyle \rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\hbox +to0pt{\kern0.55\wd0\vrule height0.5\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptstyle \rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\raise0.05\ht0\hbox +to0pt{\kern0.5\wd0\vrule height0.45\ht0\hss}\box0}} +{\setbox0=\hbox{$\scriptscriptstyle\rm S$}\hbox{\raise0.5\ht0\hbox +to0pt{\kern0.4\wd0\vrule height0.45\ht0\hss}\raise0.05\ht0\hbox +to0pt{\kern0.55\wd0\vrule height0.45\ht0\hss}\box0}}}} +\def\bbbz{{\mathchoice {\hbox{$\mathsf\textstyle Z\kern-0.4em Z$}} +{\hbox{$\mathsf\textstyle Z\kern-0.4em Z$}} +{\hbox{$\mathsf\scriptstyle Z\kern-0.3em Z$}} +{\hbox{$\mathsf\scriptscriptstyle Z\kern-0.2em Z$}}}} + +\let\ts\, + +\setlength\leftmargini {17\p@} +\setlength\leftmargin {\leftmargini} +\setlength\leftmarginii {\leftmargini} +\setlength\leftmarginiii {\leftmargini} +\setlength\leftmarginiv {\leftmargini} +\setlength \labelsep {.5em} +\setlength \labelwidth{\leftmargini} +\addtolength\labelwidth{-\labelsep} + +\def\@listI{\leftmargin\leftmargini + \parsep 0\p@ \@plus1\p@ \@minus\p@ + \topsep 8\p@ \@plus2\p@ \@minus4\p@ + \itemsep0\p@} +\let\@listi\@listI +\@listi +\def\@listii {\leftmargin\leftmarginii + \labelwidth\leftmarginii + \advance\labelwidth-\labelsep + \topsep 0\p@ \@plus2\p@ \@minus\p@} +\def\@listiii{\leftmargin\leftmarginiii + \labelwidth\leftmarginiii + \advance\labelwidth-\labelsep + \topsep 0\p@ \@plus\p@\@minus\p@ + \parsep \z@ + \partopsep \p@ \@plus\z@ \@minus\p@} + +\renewcommand\labelitemi{\normalfont\bfseries --} +\renewcommand\labelitemii{$\m@th\bullet$} + +\setlength\arraycolsep{1.4\p@} +\setlength\tabcolsep{1.4\p@} + +\def\tableofcontents{\chapter*{\contentsname\@mkboth{{\contentsname}}% + {{\contentsname}}} + \def\authcount##1{\setcounter{auco}{##1}\setcounter{@auth}{1}} + \def\lastand{\ifnum\value{auco}=2\relax + \unskip{} \andname\ + \else + \unskip \lastandname\ + \fi}% + \def\and{\stepcounter{@auth}\relax + \ifnum\value{@auth}=\value{auco}% + \lastand + \else + \unskip, + \fi}% + \@starttoc{toc}\if@restonecol\twocolumn\fi} + +\def\l@part#1#2{\addpenalty{\@secpenalty}% + \addvspace{2em plus\p@}% % space above part line + \begingroup + \parindent \z@ + \rightskip \z@ plus 5em + \hrule\vskip5pt + \large % same size as for a contribution heading + \bfseries\boldmath % set line in boldface + \leavevmode % TeX command to enter horizontal mode. + #1\par + \vskip5pt + \hrule + \vskip1pt + \nobreak % Never break after part entry + \endgroup} + +\def\@dotsep{2} + +\let\phantomsection=\relax + +\def\hyperhrefextend{\ifx\hyper@anchor\@undefined\else +{}\fi} + +\def\addnumcontentsmark#1#2#3{% +\addtocontents{#1}{\protect\contentsline{#2}{\protect\numberline + {\thechapter}#3}{\thepage}\hyperhrefextend}}% +\def\addcontentsmark#1#2#3{% +\addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}\hyperhrefextend}}% +\def\addcontentsmarkwop#1#2#3{% +\addtocontents{#1}{\protect\contentsline{#2}{#3}{0}\hyperhrefextend}}% + +\def\@adcmk[#1]{\ifcase #1 \or +\def\@gtempa{\addnumcontentsmark}% + \or \def\@gtempa{\addcontentsmark}% + \or \def\@gtempa{\addcontentsmarkwop}% + \fi\@gtempa{toc}{chapter}% +} +\def\addtocmark{% +\phantomsection +\@ifnextchar[{\@adcmk}{\@adcmk[3]}% +} + +\def\l@chapter#1#2{\addpenalty{-\@highpenalty} + \vskip 1.0em plus 1pt \@tempdima 1.5em \begingroup + \parindent \z@ \rightskip \@tocrmarg + \advance\rightskip by 0pt plus 2cm + \parfillskip -\rightskip \pretolerance=10000 + \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip + {\large\bfseries\boldmath#1}\ifx0#2\hfil\null + \else + \nobreak + \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern + \@dotsep mu$}\hfill + \nobreak\hbox to\@pnumwidth{\hss #2}% + \fi\par + \penalty\@highpenalty \endgroup} + +\def\l@title#1#2{\addpenalty{-\@highpenalty} + \addvspace{8pt plus 1pt} + \@tempdima \z@ + \begingroup + \parindent \z@ \rightskip \@tocrmarg + \advance\rightskip by 0pt plus 2cm + \parfillskip -\rightskip \pretolerance=10000 + \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip + #1\nobreak + \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern + \@dotsep mu$}\hfill + \nobreak\hbox to\@pnumwidth{\hss #2}\par + \penalty\@highpenalty \endgroup} + +\def\l@author#1#2{\addpenalty{\@highpenalty} + \@tempdima=15\p@ %\z@ + \begingroup + \parindent \z@ \rightskip \@tocrmarg + \advance\rightskip by 0pt plus 2cm + \pretolerance=10000 + \leavevmode \advance\leftskip\@tempdima %\hskip -\leftskip + \textit{#1}\par + \penalty\@highpenalty \endgroup} + +\setcounter{tocdepth}{0} +\newdimen\tocchpnum +\newdimen\tocsecnum +\newdimen\tocsectotal +\newdimen\tocsubsecnum +\newdimen\tocsubsectotal +\newdimen\tocsubsubsecnum +\newdimen\tocsubsubsectotal +\newdimen\tocparanum +\newdimen\tocparatotal +\newdimen\tocsubparanum +\tocchpnum=\z@ % no chapter numbers +\tocsecnum=15\p@ % section 88. plus 2.222pt +\tocsubsecnum=23\p@ % subsection 88.8 plus 2.222pt +\tocsubsubsecnum=27\p@ % subsubsection 88.8.8 plus 1.444pt +\tocparanum=35\p@ % paragraph 88.8.8.8 plus 1.666pt +\tocsubparanum=43\p@ % subparagraph 88.8.8.8.8 plus 1.888pt +\def\calctocindent{% +\tocsectotal=\tocchpnum +\advance\tocsectotal by\tocsecnum +\tocsubsectotal=\tocsectotal +\advance\tocsubsectotal by\tocsubsecnum +\tocsubsubsectotal=\tocsubsectotal +\advance\tocsubsubsectotal by\tocsubsubsecnum +\tocparatotal=\tocsubsubsectotal +\advance\tocparatotal by\tocparanum} +\calctocindent + +\def\l@section{\@dottedtocline{1}{\tocchpnum}{\tocsecnum}} +\def\l@subsection{\@dottedtocline{2}{\tocsectotal}{\tocsubsecnum}} +\def\l@subsubsection{\@dottedtocline{3}{\tocsubsectotal}{\tocsubsubsecnum}} +\def\l@paragraph{\@dottedtocline{4}{\tocsubsubsectotal}{\tocparanum}} +\def\l@subparagraph{\@dottedtocline{5}{\tocparatotal}{\tocsubparanum}} + +\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \fi\section*{\listfigurename\@mkboth{{\listfigurename}}{{\listfigurename}}} + \@starttoc{lof}\if@restonecol\twocolumn\fi} +\def\l@figure{\@dottedtocline{1}{0em}{1.5em}} + +\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \fi\section*{\listtablename\@mkboth{{\listtablename}}{{\listtablename}}} + \@starttoc{lot}\if@restonecol\twocolumn\fi} +\let\l@table\l@figure + +\renewcommand\listoffigures{% + \section*{\listfigurename + \@mkboth{\listfigurename}{\listfigurename}}% + \@starttoc{lof}% + } + +\renewcommand\listoftables{% + \section*{\listtablename + \@mkboth{\listtablename}{\listtablename}}% + \@starttoc{lot}% + } + +\ifx\oribibl\undefined +\ifx\citeauthoryear\undefined +\renewenvironment{thebibliography}[1] + {\section*{\refname} + \def\@biblabel##1{##1.} + \small + \list{\@biblabel{\@arabic\c@enumiv}}% + {\settowidth\labelwidth{\@biblabel{#1}}% + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \if@openbib + \advance\leftmargin\bibindent + \itemindent -\bibindent + \listparindent \itemindent + \parsep \z@ + \fi + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{\@arabic\c@enumiv}}% + \if@openbib + \renewcommand\newblock{\par}% + \else + \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% + \fi + \sloppy\clubpenalty4000\widowpenalty4000% + \sfcode`\.=\@m} + {\def\@noitemerr + {\@latex@warning{Empty `thebibliography' environment}}% + \endlist} +\def\@lbibitem[#1]#2{\item[{[#1]}\hfill]\if@filesw + {\let\protect\noexpand\immediate + \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces} +\newcount\@tempcntc +\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi + \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do + {\@ifundefined + {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bfseries + ?}\@warning + {Citation `\@citeb' on page \thepage \space undefined}}% + {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}% + \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne + \@citea\def\@citea{,}\hbox{\csname b@\@citeb\endcsname}% + \else + \advance\@tempcntb\@ne + \ifnum\@tempcntb=\@tempcntc + \else\advance\@tempcntb\m@ne\@citeo + \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}} +\def\@citeo{\ifnum\@tempcnta>\@tempcntb\else + \@citea\def\@citea{,\,\hskip\z@skip}% + \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else + {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else + \def\@citea{--}\fi + \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi} +\else +\renewenvironment{thebibliography}[1] + {\section*{\refname} + \small + \list{}% + {\settowidth\labelwidth{}% + \leftmargin\parindent + \itemindent=-\parindent + \labelsep=\z@ + \if@openbib + \advance\leftmargin\bibindent + \itemindent -\bibindent + \listparindent \itemindent + \parsep \z@ + \fi + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{}}% + \if@openbib + \renewcommand\newblock{\par}% + \else + \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% + \fi + \sloppy\clubpenalty4000\widowpenalty4000% + \sfcode`\.=\@m} + {\def\@noitemerr + {\@latex@warning{Empty `thebibliography' environment}}% + \endlist} + \def\@cite#1{#1}% + \def\@lbibitem[#1]#2{\item[]\if@filesw + {\def\protect##1{\string ##1\space}\immediate + \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces} + \fi +\else +\@cons\@openbib@code{\noexpand\small} +\fi + +\def\idxquad{\hskip 10\p@}% space that divides entry from number + +\def\@idxitem{\par\hangindent 10\p@} + +\def\subitem{\par\setbox0=\hbox{--\enspace}% second order + \noindent\hangindent\wd0\box0}% index entry + +\def\subsubitem{\par\setbox0=\hbox{--\,--\enspace}% third + \noindent\hangindent\wd0\box0}% order index entry + +\def\indexspace{\par \vskip 10\p@ plus5\p@ minus3\p@\relax} + +\renewenvironment{theindex} + {\@mkboth{\indexname}{\indexname}% + \thispagestyle{empty}\parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \let\item\par + \def\,{\relax\ifmmode\mskip\thinmuskip + \else\hskip0.2em\ignorespaces\fi}% + \normalfont\small + \begin{multicols}{2}[\@makeschapterhead{\indexname}]% + } + {\end{multicols}} + +\renewcommand\footnoterule{% + \kern-3\p@ + \hrule\@width 2truecm + \kern2.6\p@} + \newdimen\fnindent + \fnindent1em +\long\def\@makefntext#1{% + \parindent \fnindent% + \leftskip \fnindent% + \noindent + \llap{\hb@xt@1em{\hss\@makefnmark\ }}\ignorespaces#1} + +\long\def\@makecaption#1#2{% + \small + \vskip\abovecaptionskip + \sbox\@tempboxa{{\bfseries #1.} #2}% + \ifdim \wd\@tempboxa >\hsize + {\bfseries #1.} #2\par + \else + \global \@minipagefalse + \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% + \fi + \vskip\belowcaptionskip} + +\def\fps@figure{htbp} +\def\fnum@figure{\figurename\thinspace\thefigure} +\def \@floatboxreset {% + \reset@font + \small + \@setnobreak + \@setminipage +} +\def\fps@table{htbp} +\def\fnum@table{\tablename~\thetable} +\renewenvironment{table} + {\setlength\abovecaptionskip{0\p@}% + \setlength\belowcaptionskip{10\p@}% + \@float{table}} + {\end@float} +\renewenvironment{table*} + {\setlength\abovecaptionskip{0\p@}% + \setlength\belowcaptionskip{10\p@}% + \@dblfloat{table}} + {\end@dblfloat} + +\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname + ext@#1\endcsname}{#1}{\protect\numberline{\csname + the#1\endcsname}{\ignorespaces #2}}\begingroup + \@parboxrestore + \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par + \endgroup} + +% LaTeX does not provide a command to enter the authors institute +% addresses. The \institute command is defined here. + +\newcounter{@inst} +\newcounter{@auth} +\newcounter{auco} +\newdimen\instindent +\newbox\authrun +\newtoks\authorrunning +\newtoks\tocauthor +\newbox\titrun +\newtoks\titlerunning +\newtoks\toctitle + +\def\clearheadinfo{\gdef\@author{No Author Given}% + \gdef\@title{No Title Given}% + \gdef\@subtitle{}% + \gdef\@institute{No Institute Given}% + \gdef\@thanks{}% + \global\titlerunning={}\global\authorrunning={}% + \global\toctitle={}\global\tocauthor={}} + +\def\institute#1{\gdef\@institute{#1}} + +\def\institutename{\par + \begingroup + \parskip=\z@ + \parindent=\z@ + \setcounter{@inst}{1}% + \def\and{\par\stepcounter{@inst}% + \noindent$^{\the@inst}$\enspace\ignorespaces}% + \setbox0=\vbox{\def\thanks##1{}\@institute}% + \ifnum\c@@inst=1\relax + \gdef\fnnstart{0}% + \else + \xdef\fnnstart{\c@@inst}% + \setcounter{@inst}{1}% + \noindent$^{\the@inst}$\enspace + \fi + \ignorespaces + \@institute\par + \endgroup} + +\def\@fnsymbol#1{\ensuremath{\ifcase#1\or\star\or{\star\star}\or + {\star\star\star}\or \dagger\or \ddagger\or + \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger + \or \ddagger\ddagger \else\@ctrerr\fi}} + +\def\inst#1{\unskip$^{#1}$} +\def\orcidID#1{\unskip$^{[#1]}$} % added MR 2018-03-10 +\def\fnmsep{\unskip$^,$} +\def\email#1{{\tt#1}} + +\AtBeginDocument{\@ifundefined{url}{\def\url#1{#1}}{}% +\@ifpackageloaded{babel}{% +\@ifundefined{extrasenglish}{}{\addto\extrasenglish{\switcht@albion}}% +\@ifundefined{extrasfrenchb}{}{\addto\extrasfrenchb{\switcht@francais}}% +\@ifundefined{extrasgerman}{}{\addto\extrasgerman{\switcht@deutsch}}% +\@ifundefined{extrasngerman}{}{\addto\extrasngerman{\switcht@deutsch}}% +}{\switcht@@therlang}% +\providecommand{\keywords}[1]{\def\and{{\textperiodcentered} }% +\par\addvspace\baselineskip +\noindent\keywordname\enspace\ignorespaces#1}% +\@ifpackageloaded{hyperref}{% +\def\doi#1{\href{https://doi.org/\detokenize{#1}}{\url{https://doi.org/#1}}}}{ +\def\doi#1{https://doi.org/\detokenize{#1}}} +} +\def\homedir{\~{ }} + +\def\subtitle#1{\gdef\@subtitle{#1}} +\clearheadinfo +% +%%% to avoid hyperref warnings +\providecommand*{\toclevel@author}{999} +%%% to make title-entry parent of section-entries +\providecommand*{\toclevel@title}{0} +% +\renewcommand\maketitle{\newpage +\phantomsection + \refstepcounter{chapter}% + \stepcounter{section}% + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \setcounter{figure}{0} + \setcounter{table}{0} + \setcounter{equation}{0} + \setcounter{footnote}{0}% + \begingroup + \parindent=\z@ + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \if@twocolumn + \ifnum \col@number=\@ne + \@maketitle + \else + \twocolumn[\@maketitle]% + \fi + \else + \newpage + \global\@topnum\z@ % Prevents figures from going at top of page. + \@maketitle + \fi + \thispagestyle{empty}\@thanks +% + \def\\{\unskip\ \ignorespaces}\def\inst##1{\unskip{}}% + \def\thanks##1{\unskip{}}\def\fnmsep{\unskip}% + \instindent=\hsize + \advance\instindent by-\headlineindent + \if!\the\toctitle!\addcontentsline{toc}{title}{\@title}\else + \addcontentsline{toc}{title}{\the\toctitle}\fi + \if@runhead + \if!\the\titlerunning!\else + \edef\@title{\the\titlerunning}% + \fi + \global\setbox\titrun=\hbox{\small\rm\unboldmath\ignorespaces\@title}% + \ifdim\wd\titrun>\instindent + \typeout{Title too long for running head. Please supply}% + \typeout{a shorter form with \string\titlerunning\space prior to + \string\maketitle}% + \global\setbox\titrun=\hbox{\small\rm + Title Suppressed Due to Excessive Length}% + \fi + \xdef\@title{\copy\titrun}% + \fi +% + \if!\the\tocauthor!\relax + {\def\and{\noexpand\protect\noexpand\and}% + \def\inst##1{}% added MR 2017-09-20 to remove inst numbers from the TOC + \def\orcidID##1{}% added MR 2017-09-20 to remove ORCID ids from the TOC + \protected@xdef\toc@uthor{\@author}}% + \else + \def\\{\noexpand\protect\noexpand\newline}% + \protected@xdef\scratch{\the\tocauthor}% + \protected@xdef\toc@uthor{\scratch}% + \fi + \addtocontents{toc}{\noexpand\protect\noexpand\authcount{\the\c@auco}}% + \addcontentsline{toc}{author}{\toc@uthor}% + \if@runhead + \if!\the\authorrunning! + \value{@inst}=\value{@auth}% + \setcounter{@auth}{1}% + \else + \edef\@author{\the\authorrunning}% + \fi + \global\setbox\authrun=\hbox{\def\inst##1{}% added MR 2017-09-20 to remove inst numbers from the runninghead + \def\orcidID##1{}% added MR 2017-09-20 to remove ORCID ids from the runninghead + \small\unboldmath\@author\unskip}% + \ifdim\wd\authrun>\instindent + \typeout{Names of authors too long for running head. Please supply}% + \typeout{a shorter form with \string\authorrunning\space prior to + \string\maketitle}% + \global\setbox\authrun=\hbox{\small\rm + Authors Suppressed Due to Excessive Length}% + \fi + \xdef\@author{\copy\authrun}% + \markboth{\@author}{\@title}% + \fi + \endgroup + \setcounter{footnote}{\fnnstart}% + \clearheadinfo} +% +\def\@maketitle{\newpage + \markboth{}{}% + \def\lastand{\ifnum\value{@inst}=2\relax + \unskip{} \andname\ + \else + \unskip \lastandname\ + \fi}% + \def\and{\stepcounter{@auth}\relax + \ifnum\value{@auth}=\value{@inst}% + \lastand + \else + \unskip, + \fi}% + \begin{center}% + \let\newline\\ + {\Large \bfseries\boldmath + \pretolerance=10000 + \@title \par}\vskip .8cm +\if!\@subtitle!\else {\large \bfseries\boldmath + \vskip -.65cm + \pretolerance=10000 + \@subtitle \par}\vskip .8cm\fi + \setbox0=\vbox{\setcounter{@auth}{1}\def\and{\stepcounter{@auth}}% + \def\thanks##1{}\@author}% + \global\value{@inst}=\value{@auth}% + \global\value{auco}=\value{@auth}% + \setcounter{@auth}{1}% +{\lineskip .5em +\noindent\ignorespaces +\@author\vskip.35cm} + {\small\institutename} + \end{center}% + } + +% definition of the "\spnewtheorem" command. +% +% Usage: +% +% \spnewtheorem{env_nam}{caption}[within]{cap_font}{body_font} +% or \spnewtheorem{env_nam}[numbered_like]{caption}{cap_font}{body_font} +% or \spnewtheorem*{env_nam}{caption}{cap_font}{body_font} +% +% New is "cap_font" and "body_font". It stands for +% fontdefinition of the caption and the text itself. +% +% "\spnewtheorem*" gives a theorem without number. +% +% A defined spnewthoerem environment is used as described +% by Lamport. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\@thmcountersep{} +\def\@thmcounterend{.} + +\def\spnewtheorem{\@ifstar{\@sthm}{\@Sthm}} + +% definition of \spnewtheorem with number + +\def\@spnthm#1#2{% + \@ifnextchar[{\@spxnthm{#1}{#2}}{\@spynthm{#1}{#2}}} +\def\@Sthm#1{\@ifnextchar[{\@spothm{#1}}{\@spnthm{#1}}} + +\def\@spxnthm#1#2[#3]#4#5{\expandafter\@ifdefinable\csname #1\endcsname + {\@definecounter{#1}\@addtoreset{#1}{#3}% + \expandafter\xdef\csname the#1\endcsname{\expandafter\noexpand + \csname the#3\endcsname \noexpand\@thmcountersep \@thmcounter{#1}}% + \expandafter\xdef\csname #1name\endcsname{#2}% + \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#4}{#5}}% + \global\@namedef{end#1}{\@endtheorem}}} + +\def\@spynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname + {\@definecounter{#1}% + \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}% + \expandafter\xdef\csname #1name\endcsname{#2}% + \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#3}{#4}}% + \global\@namedef{end#1}{\@endtheorem}}} + +\def\@spothm#1[#2]#3#4#5{% + \@ifundefined{c@#2}{\@latexerr{No theorem environment `#2' defined}\@eha}% + {\expandafter\@ifdefinable\csname #1\endcsname + {\newaliascnt{#1}{#2}% + \expandafter\xdef\csname #1name\endcsname{#3}% + \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#4}{#5}}% + \global\@namedef{end#1}{\@endtheorem}}}} + +\def\@spthm#1#2#3#4{\topsep 7\p@ \@plus2\p@ \@minus4\p@ +\refstepcounter{#1}% +\@ifnextchar[{\@spythm{#1}{#2}{#3}{#4}}{\@spxthm{#1}{#2}{#3}{#4}}} + +\def\@spxthm#1#2#3#4{\@spbegintheorem{#2}{\csname the#1\endcsname}{#3}{#4}% + \ignorespaces} + +\def\@spythm#1#2#3#4[#5]{\@spopargbegintheorem{#2}{\csname + the#1\endcsname}{#5}{#3}{#4}\ignorespaces} + +\def\@spbegintheorem#1#2#3#4{\trivlist + \item[\hskip\labelsep{#3#1\ #2\@thmcounterend}]#4} + +\def\@spopargbegintheorem#1#2#3#4#5{\trivlist + \item[\hskip\labelsep{#4#1\ #2}]{#4(#3)\@thmcounterend\ }#5} + +% definition of \spnewtheorem* without number + +\def\@sthm#1#2{\@Ynthm{#1}{#2}} + +\def\@Ynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname + {\global\@namedef{#1}{\@Thm{\csname #1name\endcsname}{#3}{#4}}% + \expandafter\xdef\csname #1name\endcsname{#2}% + \global\@namedef{end#1}{\@endtheorem}}} + +\def\@Thm#1#2#3{\topsep 7\p@ \@plus2\p@ \@minus4\p@ +\@ifnextchar[{\@Ythm{#1}{#2}{#3}}{\@Xthm{#1}{#2}{#3}}} + +\def\@Xthm#1#2#3{\@Begintheorem{#1}{#2}{#3}\ignorespaces} + +\def\@Ythm#1#2#3[#4]{\@Opargbegintheorem{#1} + {#4}{#2}{#3}\ignorespaces} + +\def\@Begintheorem#1#2#3{#3\trivlist + \item[\hskip\labelsep{#2#1\@thmcounterend}]} + +\def\@Opargbegintheorem#1#2#3#4{#4\trivlist + \item[\hskip\labelsep{#3#1}]{#3(#2)\@thmcounterend\ }} + +\if@envcntsect + \def\@thmcountersep{.} + \spnewtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape} +\else + \spnewtheorem{theorem}{Theorem}{\bfseries}{\itshape} + \if@envcntreset + \@addtoreset{theorem}{section} + \else + \@addtoreset{theorem}{chapter} + \fi +\fi + +%definition of divers theorem environments +\spnewtheorem*{claim}{Claim}{\itshape}{\rmfamily} +\spnewtheorem*{proof}{Proof}{\itshape}{\rmfamily} +\if@envcntsame % alle Umgebungen wie Theorem. + \def\spn@wtheorem#1#2#3#4{\@spothm{#1}[theorem]{#2}{#3}{#4}} +\else % alle Umgebungen mit eigenem Zaehler + \if@envcntsect % mit section numeriert + \def\spn@wtheorem#1#2#3#4{\@spxnthm{#1}{#2}[section]{#3}{#4}} + \else % nicht mit section numeriert + \if@envcntreset + \def\spn@wtheorem#1#2#3#4{\@spynthm{#1}{#2}{#3}{#4} + \@addtoreset{#1}{section}} + \else + \def\spn@wtheorem#1#2#3#4{\@spynthm{#1}{#2}{#3}{#4} + \@addtoreset{#1}{chapter}}% + \fi + \fi +\fi +\spn@wtheorem{case}{Case}{\itshape}{\rmfamily} +\spn@wtheorem{conjecture}{Conjecture}{\itshape}{\rmfamily} +\spn@wtheorem{corollary}{Corollary}{\bfseries}{\itshape} +\spn@wtheorem{definition}{Definition}{\bfseries}{\itshape} +\spn@wtheorem{example}{Example}{\itshape}{\rmfamily} +\spn@wtheorem{exercise}{Exercise}{\itshape}{\rmfamily} +\spn@wtheorem{lemma}{Lemma}{\bfseries}{\itshape} +\spn@wtheorem{note}{Note}{\itshape}{\rmfamily} +\spn@wtheorem{problem}{Problem}{\itshape}{\rmfamily} +\spn@wtheorem{property}{Property}{\itshape}{\rmfamily} +\spn@wtheorem{proposition}{Proposition}{\bfseries}{\itshape} +\spn@wtheorem{question}{Question}{\itshape}{\rmfamily} +\spn@wtheorem{solution}{Solution}{\itshape}{\rmfamily} +\spn@wtheorem{remark}{Remark}{\itshape}{\rmfamily} + +\def\@takefromreset#1#2{% + \def\@tempa{#1}% + \let\@tempd\@elt + \def\@elt##1{% + \def\@tempb{##1}% + \ifx\@tempa\@tempb\else + \@addtoreset{##1}{#2}% + \fi}% + \expandafter\expandafter\let\expandafter\@tempc\csname cl@#2\endcsname + \expandafter\def\csname cl@#2\endcsname{}% + \@tempc + \let\@elt\@tempd} + +\def\theopargself{\def\@spopargbegintheorem##1##2##3##4##5{\trivlist + \item[\hskip\labelsep{##4##1\ ##2}]{##4##3\@thmcounterend\ }##5} + \def\@Opargbegintheorem##1##2##3##4{##4\trivlist + \item[\hskip\labelsep{##3##1}]{##3##2\@thmcounterend\ }} + } + +\renewenvironment{abstract}{% + \list{}{\advance\topsep by0.35cm\relax\small + \leftmargin=1cm + \labelwidth=\z@ + \listparindent=\z@ + \itemindent\listparindent + \rightmargin\leftmargin}\item[\hskip\labelsep + \bfseries\abstractname]} + {\endlist} + +\newdimen\headlineindent % dimension for space between +\headlineindent=1.166cm % number and text of headings. + +\def\ps@headings{\let\@mkboth\@gobbletwo + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\normalfont\small\rlap{\thepage}\hspace{\headlineindent}% + \leftmark\hfil} + \def\@oddhead{\normalfont\small\hfil\rightmark\hspace{\headlineindent}% + \llap{\thepage}} + \def\chaptermark##1{}% + \def\sectionmark##1{}% + \def\subsectionmark##1{}} + +\def\ps@titlepage{\let\@mkboth\@gobbletwo + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\normalfont\small\rlap{\thepage}\hspace{\headlineindent}% + \hfil} + \def\@oddhead{\normalfont\small\hfil\hspace{\headlineindent}% + \llap{\thepage}} + \def\chaptermark##1{}% + \def\sectionmark##1{}% + \def\subsectionmark##1{}} + +\if@runhead\ps@headings\else +\ps@empty\fi + +\setlength\arraycolsep{1.4\p@} +\setlength\tabcolsep{1.4\p@} + +\endinput +%end of file llncs.cls
@@ -0,0 +1,90 @@
+%\documentclass{llncs} +\documentclass[runningheads, draft]{llncs} + +\input{preamble-packages} +\input{preamble-macros} + +\title{\textsc{DAVINCI}\vspace{-0.4cm}} +\author{Authors: Pau Escrich and Jordi Piñana from Vocdoni Association} +\institute{Last update: \today} + +% election, vote, polling, ballot, selection, decision-making process + +\begin{document} + +\maketitle + +%enumerate pages +\pagestyle{plain} +\thispagestyle{plain} + +\addcontentsline{toc}{section}{\protect\numberline{}Abstract} +\begin{abstract} + Abstract goes here. +% \freefootnote{\scriptsize{Authors are listed in alphabetical order (\url{https://www.ams.org/profession/leaders/CultureStatement04.pdf}).}} +\end{abstract} + +\martai{Change Vocdoni to DAVINCI.} + +\setcounter{tocdepth}{3} +\makeatletter +\renewcommand*\l@author[2]{} +\renewcommand*\l@title[2]{} +\makeatletter +\tableofcontents + +%\pagebreak +\addcontentsline{toc}{section}{Old introduction} +\section*{Old introduction} +\label{sec:intro-old} +\input{\secs/introduction-old} + +\section{Introduction} +\label{sec:intro} +\input{\secs/introduction} + +\section{Background} +\label{sec:background} +\input{\secs/background} + +\section{Protocol intuition} +\label{sec:protocol-intuition} +\input{\secs/protocol-intuition} + +\section{Crytographic primitives} %building blocks +\label{sec:cryptographic-primitives} +\input{\secs/cryptographic-primitives} + +\section{The Vocdoni voting protocol} +\label{sec:vocdoni-protocol} +\input{\secs/vocdoni-protocol} + +\section{The Vocdoni ballot protocol} +\label{sec:ballot-protocol} +\input{\secs/ballot-protocol} + +\section{The Vocdoni token} +\label{sec:token} +\input{\secs/token} + +\section{Analysis} +\label{sec:analysis} +\input{\secs/analysis} + +\section{Conclusions} +\label{sec:conclusions} +\input{\secs/conclusions} + +\section*{Acknowledgments} +\addcontentsline{toc}{section}{\protect\numberline{}Acknowledgments} +\label{sec:acknowledgments} + +The authors would like to thank the following reviewers and contributors for their valuable feedback and support: all team members from the Vocdoni association, Jordi Baylina (from Iden3 and Polygon), Adrià Maçanet (Privacy Scaling Explorations, Ethereum Foundation), Arnaucube (0xPARC), Alex Kampa (AZKR), Roger Baig (Polytechnic University of Catalonia), Javier Herranz (Polytechnic University of Catalonia), and Jordi Puiggali (Secrets Vault). + + +% ---- Bibliography ---- + +\bibliographystyle{splncs04} +\bibliography{\bib/bibtex} + +\end{document}
@@ -0,0 +1,121 @@
+% !TeX root = main.tex + +% Doc sytle +\setcounter{secnumdepth}{3} %enumerate sections up to depth 3 (subsubsection) + +% Working directory +\newcommand{\definedir}[2]{\newcommand{#1}{#2}} +\definedir{\secs}{../sections} +\definedir{\figs}{../figures} +\definedir{\bib}{../bibliography} + +% Comments +\newcommand{\marta}[1]{\todo[size=\small, color=red!40]{\textbf{Marta}: #1}} +\newcommand{\martai}[1]{\todo[inline, size=\small, color=red!40]{\textbf{Marta}: #1}} +\newcommand{\pau}[1]{\todo[size=\small, color=blue!40]{\textbf{Pau}: #1}} +\newcommand{\paui}[1]{\todo[inline, size=\small, color=blue!40]{\textbf{Pau}: #1}} +\newcommand{\jordi}[1]{\todo[size=\small, color=green!40]{\textbf{Jordi}: #1}} +\newcommand{\jordii}[1]{\todo[inline, size=\small, color=green!40]{\textbf{Jordi}: #1}} + +% freefootnote +\let\svthefootnote\thefootnote +\newcommand\freefootnote[1]{% + \let\thefootnote\relax% + \footnotetext{#1}% + \let\thefootnote\svthefootnote% +} + +% Colors +\definecolor{cred}{rgb}{1, 0.5, 0.5} +\definecolor{cgreen}{rgb}{0.5, 1, 0.5} +\definecolor{cblue}{rgb}{0.5, 0.5, 1} + +% Hyperref setup +%\hypersetup{ +% final=true, +% colorlinks=true, +% linkcolor=cblue, +% urlcolor=black, +% citecolor=cblue, +%} + +% Mathbb +\newcommand{\N}{\ensuremath{\mathbb{N}}\xspace} +\newcommand{\Z}{\ensuremath{\mathbb{Z}}\xspace} +\newcommand{\G}{\ensuremath{\mathbb{G}}\xspace} +\newcommand{\F}{\ensuremath{\mathbb{F}}\xspace} +\newcommand{\J}{\ensuremath{\mathbb{J}}\xspace} + +% Ballot protocol +\newcommand{\ballotstyle}[1]{\texttt{#1}\xspace} +\newcommand{\maxcount}{\ballotstyle{maxCount}} +\newcommand{\maxvalue}{\ballotstyle{maxValue}} +\newcommand{\minvalue}{\ballotstyle{minValue}} +\newcommand{\uniquevalues}{\ballotstyle{uniqueValues}} +\newcommand{\maxtotalcost}{\ballotstyle{maxTotalCost}} +\newcommand{\mintotalcost}{\ballotstyle{minTotalCost}} +\newcommand{\costexponent}{\ballotstyle{costExponent}} + +% Voting protocol +\newcommand{\variablestyle}[1]{\texttt{#1}\xspace} +\newcommand{\nullifier}{\variablestyle{nullifier}} +\newcommand{\commitment}{\variablestyle{commitment}} + +% Others +\newcommand{\noi}{\noindent} + +% Hyperlinks +\newcommand{\hlset}[1]{\hypertarget{\detokenize{#1}}{#1}} +\newcommand{\hlget}[1]{\hyperlink{\detokenize{#1}}{#1}} + +% Cryptographic primitives +\newcommand{\methodstyle}[1]{{\sf{#1}}\xspace} +\newcommand{\Enc}{\methodstyle{Enc}} +\newcommand{\Dec}{\methodstyle{Dec}} +\newcommand{\GenerateShares}{\methodstyle{GenerateShares}} +\newcommand{\VerifyShare}{\methodstyle{VerifyShare}} +\newcommand{\DerivePublicKey}{\methodstyle{DerivePublicKey}} +\newcommand{\DeriveSecretShare}{\methodstyle{DeriveSecretShare}} + +\newcommand{\blinder}[1][]{{\sf{blinder}^{#1}}} +\newcommand{\pk}[1][]{{\sf{pk}^{#1}}} +\newcommand{\sk}[1][]{{\sf{sk}^{#1}}} +\newcommand{\msg}[1][]{{\sf{message}^{#1}}} +\newcommand{\enc}[1][]{{\sf{ciphertext}^{#1}}} +\newcommand{\sample}{\xleftarrow{\$}} + +% VOC token +\newcommand{\vocstyle}[1]{{\sf{#1}}\xspace} + +\newcommand{\baseCost}{\vocstyle{baseCost}} +\newcommand{\capacityCost}{\vocstyle{capacityCost}} +\newcommand{\durationCost}{\vocstyle{durationCost}} +\newcommand{\fixedCost}{\vocstyle{fixedCost}} +\newcommand{\maxVotes}{\vocstyle{maxVotes}} +\newcommand{\maxDuration}{\vocstyle{maxDuration}} +\newcommand{\numSequencers}{\vocstyle{numSequencers}} +\newcommand{\processDuration}{\vocstyle{processDuration}} +\newcommand{\reimbursement}{\vocstyle{reimbursement}} +\newcommand{\securityCost}{\vocstyle{securityCost}} +\newcommand{\sequencerReward}{\vocstyle{sequencerReward}} +\newcommand{\slashedAmount}{\vocstyle{slashedAmount}} +\newcommand{\stakedCollateral}{\vocstyle{stakedCollateral}} +\newcommand{\totalCost}{\vocstyle{totalCost}} +\newcommand{\totalReward}{\vocstyle{totalReward}} +\newcommand{\totalRewrites}{\vocstyle{totalRewrites}} +\newcommand{\totalSequencers}{\vocstyle{totalSequencers}} +\newcommand{\totalVotingProcesses}{\vocstyle{totalVotingProcesses}} +\newcommand{\usedSequencers}{\vocstyle{usedSequencers}} +\newcommand{\votes}{\vocstyle{votes}} +\newcommand{\voteRewrites}{\vocstyle{voteRewrites}} + + + + +% draft watermark +%\ifdraft{\SetWatermarkScale{4}}{\SetWatermarkScale{0}} + +% new foonote referencing a previous footmark +\makeatletter +\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark} +\makeatother
@@ -0,0 +1,42 @@
+% !TeX root = main.tex + +\usepackage[T1]{fontenc} +\usepackage[margin=1in]{geometry} +\usepackage{graphicx} +\usepackage{authblk} +%S\usepackage[ruled,vlined]{algorithm2e} + +\usepackage{float} + +\usepackage[english]{babel} +\usepackage[utf8]{inputenc} + +\usepackage{hyperref} +\hypersetup{final} + +\usepackage{footmisc} %footnotes handling + +\usepackage{amsmath, amssymb, mathtools} +\usepackage{listings} +\usepackage{graphicx, color, xcolor} +\usepackage{xspace} %list of punctuation marks +\usepackage{enumitem} +\usepackage{multirow} +\usepackage{ifdraft} +%\usepackage{draftwatermark} + +\usepackage{setspace} + +\usepackage{mdframed} % frame figures + +%\ifdraft{ +% % \usepackage[color = {[rgb]{0.9, 0.9, 0.9}}]{draftwatermark} +% \usepackage{draftwatermark} +% \SetWatermarkText{Draft} +% \SetWatermarkScale{4} +%} + +\ifdraft{\usepackage[colorinlistoftodos, textwidth = 40mm]{todonotes}} +{\usepackage[disable, colorinlistoftodos, textwidth = 40mm]{todonotes}} + +\usepackage{tikz,tikz-cd}
@@ -0,0 +1,1548 @@
+%% BibTeX bibliography style `splncs03' +%% +%% BibTeX bibliography style for use with numbered references in +%% Springer Verlag's "Lecture Notes in Computer Science" series. +%% (See Springer's documentation for llncs.cls for +%% more details of the suggested reference format.) Note that this +%% file will not work for author-year style citations. +%% +%% Use \documentclass{llncs} and \bibliographystyle{splncs03}, and cite +%% a reference with (e.g.) \cite{smith77} to get a "[1]" in the text. +%% +%% This file comes to you courtesy of Maurizio "Titto" Patrignani of +%% Dipartimento di Informatica e Automazione Universita' Roma Tre +%% +%% ================================================================================================ +%% This was file `titto-lncs-02.bst' produced on Wed Apr 1, 2009 +%% Edited by hand by titto based on `titto-lncs-01.bst' (see below) +%% +%% CHANGES (with respect to titto-lncs-01.bst): +%% - Removed the call to \urlprefix (thus no "URL" string is added to the output) +%% ================================================================================================ +%% This was file `titto-lncs-01.bst' produced on Fri Aug 22, 2008 +%% Edited by hand by titto based on `titto.bst' (see below) +%% +%% CHANGES (with respect to titto.bst): +%% - Removed the "capitalize" command for editors string "(eds.)" and "(ed.)" +%% - Introduced the functions titto.bbl.pages and titto.bbl.page for journal pages (without "pp.") +%% - Added a new.sentence command to separate with a dot booktitle and series in the inproceedings +%% - Commented all new.block commands before urls and notes (to separate them with a comma) +%% - Introduced the functions titto.bbl.volume for handling journal volumes (without "vol." label) +%% - Used for editors the same name conventions used for authors (see function format.in.ed.booktitle) +%% - Removed a \newblock to avoid long spaces between title and "In: ..." +%% - Added function titto.space.prefix to add a space instead of "~" after the (removed) "vol." label +%% - Added doi +%% ================================================================================================ +%% This was file `titto.bst', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% merlin.mbs (with options: `vonx,nm-rvvc,yr-par,jttl-rm,volp-com,jwdpg,jwdvol,numser,ser-vol,jnm-x,btit-rm,bt-rm,edparxc,bkedcap,au-col,in-col,fin-bare,pp,ed,abr,mth-bare,xedn,jabr,and-com,and-com-ed,xand,url,url-blk,em-x,nfss,') +%% ---------------------------------------- +%% *** Tentative .bst file for Springer LNCS *** +%% +%% Copyright 1994-2007 Patrick W Daly + % =============================================================== + % IMPORTANT NOTICE: + % This bibliographic style (bst) file has been generated from one or + % more master bibliographic style (mbs) files, listed above. + % + % This generated file can be redistributed and/or modified under the terms + % of the LaTeX Project Public License Distributed from CTAN + % archives in directory macros/latex/base/lppl.txt; either + % version 1 of the License, or any later version. + % =============================================================== + % Name and version information of the main mbs file: + % \ProvidesFile{merlin.mbs}[2007/04/24 4.20 (PWD, AO, DPC)] + % For use with BibTeX version 0.99a or later + %------------------------------------------------------------------- + % This bibliography style file is intended for texts in ENGLISH + % This is a numerical citation style, and as such is standard LaTeX. + % It requires no extra package to interface to the main text. + % The form of the \bibitem entries is + % \bibitem{key}... + % Usage of \cite is as follows: + % \cite{key} ==>> [#] + % \cite[chap. 2]{key} ==>> [#, chap. 2] + % where # is a number determined by the ordering in the reference list. + % The order in the reference list is alphabetical by authors. + %--------------------------------------------------------------------- + +ENTRY + { address + author + booktitle + chapter + doi + edition + editor + eid + howpublished + institution + journal + key + month + note + number + organization + pages + publisher + school + series + title + type + url + volume + year + } + {} + { label } +INTEGERS { output.state before.all mid.sentence after.sentence after.block } +FUNCTION {init.state.consts} +{ #0 'before.all := + #1 'mid.sentence := + #2 'after.sentence := + #3 'after.block := +} +STRINGS { s t} +FUNCTION {output.nonnull} +{ 's := + output.state mid.sentence = + { ", " * write$ } + { output.state after.block = + { add.period$ write$ +% newline$ +% "\newblock " write$ % removed for titto-lncs-01 + " " write$ % to avoid long spaces between title and "In: ..." + } + { output.state before.all = + 'write$ + { add.period$ " " * write$ } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} +FUNCTION {output} +{ duplicate$ empty$ + 'pop$ + 'output.nonnull + if$ +} +FUNCTION {output.check} +{ 't := + duplicate$ empty$ + { pop$ "empty " t * " in " * cite$ * warning$ } + 'output.nonnull + if$ +} +FUNCTION {fin.entry} +{ duplicate$ empty$ + 'pop$ + 'write$ + if$ + newline$ +} + +FUNCTION {new.block} +{ output.state before.all = + 'skip$ + { after.block 'output.state := } + if$ +} +FUNCTION {new.sentence} +{ output.state after.block = + 'skip$ + { output.state before.all = + 'skip$ + { after.sentence 'output.state := } + if$ + } + if$ +} +FUNCTION {add.blank} +{ " " * before.all 'output.state := +} + + +FUNCTION {add.colon} +{ duplicate$ empty$ + 'skip$ + { ":" * add.blank } + if$ +} + +FUNCTION {date.block} +{ + new.block +} + +FUNCTION {not} +{ { #0 } + { #1 } + if$ +} +FUNCTION {and} +{ 'skip$ + { pop$ #0 } + if$ +} +FUNCTION {or} +{ { pop$ #1 } + 'skip$ + if$ +} +STRINGS {z} +FUNCTION {remove.dots} +{ 'z := + "" + { z empty$ not } + { z #1 #1 substring$ + z #2 global.max$ substring$ 'z := + duplicate$ "." = 'pop$ + { * } + if$ + } + while$ +} +FUNCTION {new.block.checka} +{ empty$ + 'skip$ + 'new.block + if$ +} +FUNCTION {new.block.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.block + if$ +} +FUNCTION {new.sentence.checka} +{ empty$ + 'skip$ + 'new.sentence + if$ +} +FUNCTION {new.sentence.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.sentence + if$ +} +FUNCTION {field.or.null} +{ duplicate$ empty$ + { pop$ "" } + 'skip$ + if$ +} +FUNCTION {emphasize} +{ skip$ } + +FUNCTION {embolden} +{ duplicate$ empty$ +{ pop$ "" } +{ "\textbf{" swap$ * "}" * } +if$ +} +FUNCTION {tie.or.space.prefix} +{ duplicate$ text.length$ #5 < + { "~" } + { " " } + if$ + swap$ +} +FUNCTION {titto.space.prefix} % always introduce a space +{ duplicate$ text.length$ #3 < + { " " } + { " " } + if$ + swap$ +} + + +FUNCTION {capitalize} +{ "u" change.case$ "t" change.case$ } + +FUNCTION {space.word} +{ " " swap$ * " " * } + % Here are the language-specific definitions for explicit words. + % Each function has a name bbl.xxx where xxx is the English word. + % The language selected here is ENGLISH +FUNCTION {bbl.and} +{ "and"} + +FUNCTION {bbl.etal} +{ "et~al." } + +FUNCTION {bbl.editors} +{ "eds." } + +FUNCTION {bbl.editor} +{ "ed." } + +FUNCTION {bbl.edby} +{ "edited by" } + +FUNCTION {bbl.edition} +{ "edn." } + +FUNCTION {bbl.volume} +{ "vol." } + +FUNCTION {titto.bbl.volume} % for handling journals +{ "" } + +FUNCTION {bbl.of} +{ "of" } + +FUNCTION {bbl.number} +{ "no." } + +FUNCTION {bbl.nr} +{ "no." } + +FUNCTION {bbl.in} +{ "in" } + +FUNCTION {bbl.pages} +{ "pp." } + +FUNCTION {bbl.page} +{ "p." } + +FUNCTION {titto.bbl.pages} % for journals +{ "" } + +FUNCTION {titto.bbl.page} % for journals +{ "" } + +FUNCTION {bbl.chapter} +{ "chap." } + +FUNCTION {bbl.techrep} +{ "Tech. Rep." } + +FUNCTION {bbl.mthesis} +{ "Master's thesis" } + +FUNCTION {bbl.phdthesis} +{ "Ph.D. thesis" } + +MACRO {jan} {"Jan."} + +MACRO {feb} {"Feb."} + +MACRO {mar} {"Mar."} + +MACRO {apr} {"Apr."} + +MACRO {may} {"May"} + +MACRO {jun} {"Jun."} + +MACRO {jul} {"Jul."} + +MACRO {aug} {"Aug."} + +MACRO {sep} {"Sep."} + +MACRO {oct} {"Oct."} + +MACRO {nov} {"Nov."} + +MACRO {dec} {"Dec."} + +MACRO {acmcs} {"ACM Comput. Surv."} + +MACRO {acta} {"Acta Inf."} + +MACRO {cacm} {"Commun. ACM"} + +MACRO {ibmjrd} {"IBM J. Res. Dev."} + +MACRO {ibmsj} {"IBM Syst.~J."} + +MACRO {ieeese} {"IEEE Trans. Software Eng."} + +MACRO {ieeetc} {"IEEE Trans. Comput."} + +MACRO {ieeetcad} + {"IEEE Trans. Comput. Aid. Des."} + +MACRO {ipl} {"Inf. Process. Lett."} + +MACRO {jacm} {"J.~ACM"} + +MACRO {jcss} {"J.~Comput. Syst. Sci."} + +MACRO {scp} {"Sci. Comput. Program."} + +MACRO {sicomp} {"SIAM J. Comput."} + +MACRO {tocs} {"ACM Trans. Comput. Syst."} + +MACRO {tods} {"ACM Trans. Database Syst."} + +MACRO {tog} {"ACM Trans. Graphic."} + +MACRO {toms} {"ACM Trans. Math. Software"} + +MACRO {toois} {"ACM Trans. Office Inf. Syst."} + +MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."} + +MACRO {tcs} {"Theor. Comput. Sci."} + +FUNCTION {bibinfo.check} +{ swap$ + duplicate$ missing$ + { + pop$ pop$ + "" + } + { duplicate$ empty$ + { + swap$ pop$ + } + { swap$ + pop$ + } + if$ + } + if$ +} +FUNCTION {bibinfo.warn} +{ swap$ + duplicate$ missing$ + { + swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ + "" + } + { duplicate$ empty$ + { + swap$ "empty " swap$ * " in " * cite$ * warning$ + } + { swap$ + pop$ + } + if$ + } + if$ +} +FUNCTION {format.url} +{ url empty$ + { "" } +% { "\urlprefix\url{" url * "}" * } + { "\url{" url * "}" * } % changed in titto-lncs-02.bst + if$ +} + +FUNCTION {format.doi} % added in splncs04.bst +{ doi empty$ + { "" } + { after.block 'output.state := + "\doi{" doi * "}" * } + if$ +} + +INTEGERS { nameptr namesleft numnames } + + +STRINGS { bibinfo} + +FUNCTION {format.names} +{ 'bibinfo := + duplicate$ empty$ 'skip$ { + 's := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv~}{ll}{, jj}{, f{.}.}" + format.name$ + bibinfo bibinfo.check + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + "," * + t "others" = + { + " " * bbl.etal * + } + { " " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ + } if$ +} +FUNCTION {format.names.ed} +{ + 'bibinfo := + duplicate$ empty$ 'skip$ { + 's := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{f{.}.~}{vv~}{ll}{ jj}" + format.name$ + bibinfo bibinfo.check + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + "," * + t "others" = + { + + " " * bbl.etal * + } + { " " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ + } if$ +} +FUNCTION {format.authors} +{ author "author" format.names +} +FUNCTION {get.bbl.editor} +{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } + +FUNCTION {format.editors} +{ editor "editor" format.names duplicate$ empty$ 'skip$ + { + " " * + get.bbl.editor +% capitalize + "(" swap$ * ")" * + * + } + if$ +} +FUNCTION {format.note} +{ + note empty$ + { "" } + { note #1 #1 substring$ + duplicate$ "{" = + 'skip$ + { output.state mid.sentence = + { "l" } + { "u" } + if$ + change.case$ + } + if$ + note #2 global.max$ substring$ * "note" bibinfo.check + } + if$ +} + +FUNCTION {format.title} +{ title + duplicate$ empty$ 'skip$ + { "t" change.case$ } + if$ + "title" bibinfo.check +} +FUNCTION {output.bibitem} +{ newline$ + "\bibitem{" write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := +} + +FUNCTION {n.dashify} +{ + 't := + "" + { t empty$ not } + { t #1 #1 substring$ "-" = + { t #1 #2 substring$ "--" = not + { "--" * + t #2 global.max$ substring$ 't := + } + { { t #1 #1 substring$ "-" = } + { "-" * + t #2 global.max$ substring$ 't := + } + while$ + } + if$ + } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + if$ + } + while$ +} + +FUNCTION {word.in} +{ bbl.in capitalize + ":" * + " " * } + +FUNCTION {format.date} +{ + month "month" bibinfo.check + duplicate$ empty$ + year "year" bibinfo.check duplicate$ empty$ + { swap$ 'skip$ + { "there's a month but no year in " cite$ * warning$ } + if$ + * + } + { swap$ 'skip$ + { + swap$ + " " * swap$ + } + if$ + * + remove.dots + } + if$ + duplicate$ empty$ + 'skip$ + { + before.all 'output.state := + " (" swap$ * ")" * + } + if$ +} +FUNCTION {format.btitle} +{ title "title" bibinfo.check + duplicate$ empty$ 'skip$ + { + } + if$ +} +FUNCTION {either.or.check} +{ empty$ + 'pop$ + { "can't use both " swap$ * " fields in " * cite$ * warning$ } + if$ +} +FUNCTION {format.bvolume} +{ volume empty$ + { "" } + { bbl.volume volume tie.or.space.prefix + "volume" bibinfo.check * * + series "series" bibinfo.check + duplicate$ empty$ 'pop$ + { emphasize ", " * swap$ * } + if$ + "volume and number" number either.or.check + } + if$ +} +FUNCTION {format.number.series} +{ volume empty$ + { number empty$ + { series field.or.null } + { output.state mid.sentence = + { bbl.number } + { bbl.number capitalize } + if$ + number tie.or.space.prefix "number" bibinfo.check * * + series empty$ + { "there's a number but no series in " cite$ * warning$ } + { bbl.in space.word * + series "series" bibinfo.check * + } + if$ + } + if$ + } + { "" } + if$ +} + +FUNCTION {format.edition} +{ edition duplicate$ empty$ 'skip$ + { + output.state mid.sentence = + { "l" } + { "t" } + if$ change.case$ + "edition" bibinfo.check + " " * bbl.edition * + } + if$ +} +INTEGERS { multiresult } +FUNCTION {multi.page.check} +{ 't := + #0 'multiresult := + { multiresult not + t empty$ not + and + } + { t #1 #1 substring$ + duplicate$ "-" = + swap$ duplicate$ "," = + swap$ "+" = + or or + { #1 'multiresult := } + { t #2 global.max$ substring$ 't := } + if$ + } + while$ + multiresult +} +FUNCTION {format.pages} +{ pages duplicate$ empty$ 'skip$ + { duplicate$ multi.page.check + { + bbl.pages swap$ + n.dashify + } + { + bbl.page swap$ + } + if$ + tie.or.space.prefix + "pages" bibinfo.check + * * + } + if$ +} +FUNCTION {format.journal.pages} +{ pages duplicate$ empty$ 'pop$ + { swap$ duplicate$ empty$ + { pop$ pop$ format.pages } + { + ", " * + swap$ + n.dashify + pages multi.page.check + 'titto.bbl.pages + 'titto.bbl.page + if$ + swap$ tie.or.space.prefix + "pages" bibinfo.check + * * + * + } + if$ + } + if$ +} +FUNCTION {format.journal.eid} +{ eid "eid" bibinfo.check + duplicate$ empty$ 'pop$ + { swap$ duplicate$ empty$ 'skip$ + { + ", " * + } + if$ + swap$ * + } + if$ +} +FUNCTION {format.vol.num.pages} % this function is used only for journal entries +{ volume field.or.null embolden + duplicate$ empty$ 'skip$ + { +% bbl.volume swap$ tie.or.space.prefix + titto.bbl.volume swap$ titto.space.prefix +% rationale for the change above: for journals you don't want "vol." label +% hence it does not make sense to attach the journal number to the label when +% it is short + "volume" bibinfo.check + * * + } + if$ + number "number" bibinfo.check duplicate$ empty$ 'skip$ + { + swap$ duplicate$ empty$ + { "there's a number but no volume in " cite$ * warning$ } + 'skip$ + if$ + swap$ + "(" swap$ * ")" * + } + if$ * + eid empty$ + { format.journal.pages } + { format.journal.eid } + if$ +} + +FUNCTION {format.chapter.pages} +{ chapter empty$ + 'format.pages + { type empty$ + { bbl.chapter } + { type "l" change.case$ + "type" bibinfo.check + } + if$ + chapter tie.or.space.prefix + "chapter" bibinfo.check + * * + pages empty$ + 'skip$ + { ", " * format.pages * } + if$ + } + if$ +} + +FUNCTION {format.booktitle} +{ + booktitle "booktitle" bibinfo.check +} +FUNCTION {format.in.ed.booktitle} +{ format.booktitle duplicate$ empty$ 'skip$ + { +% editor "editor" format.names.ed duplicate$ empty$ 'pop$ % changed by titto + editor "editor" format.names duplicate$ empty$ 'pop$ + { + " " * + get.bbl.editor +% capitalize + "(" swap$ * ") " * + * swap$ + * } + if$ + word.in swap$ * + } + if$ +} +FUNCTION {empty.misc.check} +{ author empty$ title empty$ howpublished empty$ + month empty$ year empty$ note empty$ + and and and and and + key empty$ not and + { "all relevant fields are empty in " cite$ * warning$ } + 'skip$ + if$ +} +FUNCTION {format.thesis.type} +{ type duplicate$ empty$ + 'pop$ + { swap$ pop$ + "t" change.case$ "type" bibinfo.check + } + if$ +} +FUNCTION {format.tr.number} +{ number "number" bibinfo.check + type duplicate$ empty$ + { pop$ bbl.techrep } + 'skip$ + if$ + "type" bibinfo.check + swap$ duplicate$ empty$ + { pop$ "t" change.case$ } + { tie.or.space.prefix * * } + if$ +} +FUNCTION {format.article.crossref} +{ + key duplicate$ empty$ + { pop$ + journal duplicate$ empty$ + { "need key or journal for " cite$ * " to crossref " * crossref * warning$ } + { "journal" bibinfo.check emphasize word.in swap$ * } + if$ + } + { word.in swap$ * " " *} + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.crossref.editor} +{ editor #1 "{vv~}{ll}" format.name$ + "editor" bibinfo.check + editor num.names$ duplicate$ + #2 > + { pop$ + "editor" bibinfo.check + " " * bbl.etal + * + } + { #2 < + 'skip$ + { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = + { + "editor" bibinfo.check + " " * bbl.etal + * + } + { + bbl.and space.word + * editor #2 "{vv~}{ll}" format.name$ + "editor" bibinfo.check + * + } + if$ + } + if$ + } + if$ +} +FUNCTION {format.book.crossref} +{ volume duplicate$ empty$ + { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ + pop$ word.in + } + { bbl.volume + capitalize + swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word * + } + if$ + editor empty$ + editor field.or.null author field.or.null = + or + { key empty$ + { series empty$ + { "need editor, key, or series for " cite$ * " to crossref " * + crossref * warning$ + "" * + } + { series emphasize * } + if$ + } + { key * } + if$ + } + { format.crossref.editor * } + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.incoll.inproc.crossref} +{ + editor empty$ + editor field.or.null author field.or.null = + or + { key empty$ + { format.booktitle duplicate$ empty$ + { "need editor, key, or booktitle for " cite$ * " to crossref " * + crossref * warning$ + } + { word.in swap$ * } + if$ + } + { word.in key * " " *} + if$ + } + { word.in format.crossref.editor * " " *} + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.org.or.pub} +{ 't := + "" + address empty$ t empty$ and + 'skip$ + { + t empty$ + { address "address" bibinfo.check * + } + { t * + address empty$ + 'skip$ + { ", " * address "address" bibinfo.check * } + if$ + } + if$ + } + if$ +} +FUNCTION {format.publisher.address} +{ publisher "publisher" bibinfo.warn format.org.or.pub +} + +FUNCTION {format.organization.address} +{ organization "organization" bibinfo.check format.org.or.pub +} + +FUNCTION {article} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + new.block + crossref missing$ + { + journal + "journal" bibinfo.check + "journal" output.check + add.blank + format.vol.num.pages output + format.date "year" output.check + } + { format.article.crossref output.nonnull + format.pages output + } + if$ +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {book} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + add.colon + } + { format.authors output.nonnull + add.colon + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + new.block + format.btitle "title" output.check + crossref missing$ + { format.bvolume output + new.block + new.sentence + format.number.series output + format.publisher.address output + } + { + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {booklet} +{ output.bibitem + format.authors output + add.colon + new.block + format.title "title" output.check + new.block + howpublished "howpublished" bibinfo.check output + address "address" bibinfo.check output + format.date output +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {inbook} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + add.colon + } + { format.authors output.nonnull + add.colon + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + new.block + format.btitle "title" output.check + crossref missing$ + { + format.bvolume output + format.chapter.pages "chapter and pages" output.check + new.block + new.sentence + format.number.series output + format.publisher.address output + } + { + format.chapter.pages "chapter and pages" output.check + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {incollection} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + format.bvolume output + format.chapter.pages output + new.sentence + format.number.series output + format.publisher.address output + format.edition output + format.date "year" output.check + } + { format.incoll.inproc.crossref output.nonnull + format.chapter.pages output + } + if$ +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {inproceedings} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + new.sentence % added by titto + format.bvolume output + format.pages output + new.sentence + format.number.series output + publisher empty$ + { format.organization.address output } + { organization "organization" bibinfo.check output + format.publisher.address output + } + if$ + format.date "year" output.check + } + { format.incoll.inproc.crossref output.nonnull + format.pages output + } + if$ +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} +FUNCTION {conference} { inproceedings } +FUNCTION {manual} +{ output.bibitem + author empty$ + { organization "organization" bibinfo.check + duplicate$ empty$ 'pop$ + { output + address "address" bibinfo.check output + } + if$ + } + { format.authors output.nonnull } + if$ + add.colon + new.block + format.btitle "title" output.check + author empty$ + { organization empty$ + { + address new.block.checka + address "address" bibinfo.check output + } + 'skip$ + if$ + } + { + organization address new.block.checkb + organization "organization" bibinfo.check output + address "address" bibinfo.check output + } + if$ + format.edition output + format.date output +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {mastersthesis} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.btitle + "title" output.check + new.block + bbl.mthesis format.thesis.type output.nonnull + school "school" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {misc} +{ output.bibitem + format.authors output + add.colon + title howpublished new.block.checkb + format.title output + howpublished new.block.checka + howpublished "howpublished" bibinfo.check output + format.date output +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry + empty.misc.check +} +FUNCTION {phdthesis} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.btitle + "title" output.check + new.block + bbl.phdthesis format.thesis.type output.nonnull + school "school" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {proceedings} +{ output.bibitem + editor empty$ + { organization "organization" bibinfo.check output + } + { format.editors output.nonnull } + if$ + add.colon + new.block + format.btitle "title" output.check + format.bvolume output + editor empty$ + { publisher empty$ + { format.number.series output } + { + new.sentence + format.number.series output + format.publisher.address output + } + if$ + } + { publisher empty$ + { + new.sentence + format.number.series output + format.organization.address output } + { + new.sentence + format.number.series output + organization "organization" bibinfo.check output + format.publisher.address output + } + if$ + } + if$ + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {techreport} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title + "title" output.check + new.block + format.tr.number output.nonnull + institution "institution" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check +% new.block + format.doi output + format.url output +% new.block + format.note output + fin.entry +} + +FUNCTION {unpublished} +{ output.bibitem + format.authors "author" output.check + add.colon + new.block + format.title "title" output.check + format.date output +% new.block + format.url output +% new.block + format.note "note" output.check + fin.entry +} + +FUNCTION {default.type} { misc } +READ +FUNCTION {sortify} +{ purify$ + "l" change.case$ +} +INTEGERS { len } +FUNCTION {chop.word} +{ 's := + 'len := + s #1 len substring$ = + { s len #1 + global.max$ substring$ } + 's + if$ +} +FUNCTION {sort.format.names} +{ 's := + #1 'nameptr := + "" + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{ll{ }}{ ff{ }}{ jj{ }}" + format.name$ 't := + nameptr #1 > + { + " " * + namesleft #1 = t "others" = and + { "zzzzz" * } + { t sortify * } + if$ + } + { t sortify * } + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {sort.format.title} +{ 't := + "A " #2 + "An " #3 + "The " #4 t chop.word + chop.word + chop.word + sortify + #1 global.max$ substring$ +} +FUNCTION {author.sort} +{ author empty$ + { key empty$ + { "to sort, need author or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {author.editor.sort} +{ author empty$ + { editor empty$ + { key empty$ + { "to sort, need author, editor, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {author.organization.sort} +{ author empty$ + { organization empty$ + { key empty$ + { "to sort, need author, organization, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { "The " #4 organization chop.word sortify } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {editor.organization.sort} +{ editor empty$ + { organization empty$ + { key empty$ + { "to sort, need editor, organization, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { "The " #4 organization chop.word sortify } + if$ + } + { editor sort.format.names } + if$ +} +FUNCTION {presort} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.sort + { type$ "proceedings" = + 'editor.organization.sort + { type$ "manual" = + 'author.organization.sort + 'author.sort + if$ + } + if$ + } + if$ + " " + * + year field.or.null sortify + * + " " + * + title field.or.null + sort.format.title + * + #1 entry.max$ substring$ + 'sort.key$ := +} +ITERATE {presort} +SORT +STRINGS { longest.label } +INTEGERS { number.label longest.label.width } +FUNCTION {initialize.longest.label} +{ "" 'longest.label := + #1 'number.label := + #0 'longest.label.width := +} +FUNCTION {longest.label.pass} +{ number.label int.to.str$ 'label := + number.label #1 + 'number.label := + label width$ longest.label.width > + { label 'longest.label := + label width$ 'longest.label.width := + } + 'skip$ + if$ +} +EXECUTE {initialize.longest.label} +ITERATE {longest.label.pass} +FUNCTION {begin.bib} +{ preamble$ empty$ + 'skip$ + { preamble$ write$ newline$ } + if$ + "\begin{thebibliography}{" longest.label * "}" * + write$ newline$ + "\providecommand{\url}[1]{\texttt{#1}}" + write$ newline$ + "\providecommand{\urlprefix}{URL }" + write$ newline$ + "\providecommand{\doi}[1]{https://doi.org/#1}" + write$ newline$ +} +EXECUTE {begin.bib} +EXECUTE {init.state.consts} +ITERATE {call.type$} +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} +EXECUTE {end.bib} +%% End of customized bst file +%% +%% End of file `titto.bst'.
@@ -0,0 +1,217 @@
+<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.1"> + <diagram name="Copy of Copy of Copy of Page-1" id="FocDNK0yRkmTtnVSRizj"> + <mxGraphModel dx="1687" dy="886" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <root> + <mxCell id="U726NmcKOxkLk4yX-4My-0" /> + <mxCell id="U726NmcKOxkLk4yX-4My-1" parent="U726NmcKOxkLk4yX-4My-0" /> + <mxCell id="-n0zQNNrxNN8dLtkatG7-26" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="150" y="39.88" width="1270" height="590.12" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="180" y="139.88" width="1210" height="390.12" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-2" value="$$\text{Proof.verify}(\text{vote proof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="200" y="390" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-3" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-5" target="U726NmcKOxkLk4yX-4My-2"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="229.89" y="150" as="sourcePoint" /> + <mxPoint x="229.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-4" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-2" target="U726NmcKOxkLk4yX-4My-7"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="299.58" y="340" as="sourcePoint" /> + <mxPoint x="300" y="820" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-5" value="<div style="font-size: 11px;">$$\text{vote proof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="220" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-6" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="340" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-7" value="<div>$$\text{bool}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="270" y="560" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-8" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="410" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-9" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="480" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-2"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="630" y="350" as="sourcePoint" /> + <mxPoint x="830" y="319" as="targetPoint" /> + <Array as="points"> + <mxPoint x="350" y="350" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-11" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="620" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-12" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-24"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="630" y="320" as="sourcePoint" /> + <mxPoint x="630" y="530" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-13" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1240" y="560" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-14" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="550" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-15" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="690" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-16" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="760" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-17" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="540" y="280" width="180" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.23;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19" target="U726NmcKOxkLk4yX-4My-17"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="580" y="280" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="570.91" y="-87.65" width="21.21" height="419.25" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-21" target="U726NmcKOxkLk4yX-4My-23"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-21" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1120" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-23" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1110" y="190" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-24" value="$$\text{Hash}(\text{public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="540" y="385" width="180" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-26" value="$$\text{MT proof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="860" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-28" target="U726NmcKOxkLk4yX-4My-32"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1310" y="480" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-28" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1280" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-29" value="$$\text{MT root}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="930" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.31;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-24" target="U726NmcKOxkLk4yX-4My-32"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="870" y="250" as="sourcePoint" /> + <mxPoint x="940" y="480" as="targetPoint" /> + <Array as="points"> + <mxPoint x="630" y="450" /> + <mxPoint x="1232" y="450" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-32" target="U726NmcKOxkLk4yX-4My-13"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-32" value="$$\text{Signature.verify}()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1170" y="470" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1150" y="160" as="sourcePoint" /> + <mxPoint x="1270" y="470" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1270" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;entryX=0.797;entryY=0.02;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="Alor29dF2PIa9BzgdgEN-0"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1000" y="250" as="sourcePoint" /> + <mxPoint x="1420" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1000" y="290" /> + <mxPoint x="999" y="290" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="Alor29dF2PIa9BzgdgEN-0" target="Alor29dF2PIa9BzgdgEN-4"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-0" value="<div>$$\text{MT.verify}()$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="840" y="320" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-1" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="789.58" y="160" as="sourcePoint" /> + <mxPoint x="870" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="791" y="280" /> + <mxPoint x="870" y="280" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-26"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="890" y="320" as="targetPoint" /> + <mxPoint x="889.71" y="120" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-29"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="959.9" y="320" as="targetPoint" /> + <mxPoint x="959.61" y="120" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-25" target="U726NmcKOxkLk4yX-4My-17"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="880" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="688" y="250" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-4" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="910" y="560" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-23" target="U726NmcKOxkLk4yX-4My-25"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1150" y="230" as="sourcePoint" /> + <mxPoint x="688" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1150" y="250" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-25" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1040" y="230" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-13" value="VOTER'S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="200" y="660.63" width="560" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-14" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="800" y="660.63" width="307.19" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-15" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1150" y="660.63" width="230" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="470" y="370" width="20" height="561.25" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-20" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="942.19" y="497.20000000000005" width="20" height="306.87" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-21" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1254.19" y="531.88" width="20" height="237.5" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> +</mxfile>
@@ -0,0 +1,481 @@
+<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.1" pages="4"> + <diagram id="-JAmnd0uZNJ1_gcuKymy" name="1. voter-circuit"> + <mxGraphModel dx="1434" dy="753" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <mxCell id="EW1sCxBa3IzSmhOEwzda-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="130" y="60" width="890" height="400" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="160" y="140" width="840" height="230" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-3" value="$$\text{Hash}(\text{address} || \text{processID} || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1"> + <mxGeometry x="200" y="190" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-4" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.849;entryY=-0.009;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-10" target="EW1sCxBa3IzSmhOEwzda-3" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="370" y="160" as="sourcePoint" /> + <mxPoint x="369.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-5" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-9" target="EW1sCxBa3IzSmhOEwzda-3" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="300" y="160" as="sourcePoint" /> + <mxPoint x="299.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-6" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.149;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-8" target="EW1sCxBa3IzSmhOEwzda-3" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="229.89" y="150" as="sourcePoint" /> + <mxPoint x="229.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-7" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-3" target="EW1sCxBa3IzSmhOEwzda-11" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="299.58" y="230" as="sourcePoint" /> + <mxPoint x="300" y="710" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-8" value="<div style="font-size: 11px;">$$\text{address}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="200" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-9" value="$$\text{processID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="270" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-10" value="$$s$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="340" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-11" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="270" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-12" value="$$\text{protocolRulesCompliance}(\text{config}, m)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="520" y="190" width="240" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-14" target="EW1sCxBa3IzSmhOEwzda-12" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-14" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="550" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.165;entryY=-0.015;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="EW1sCxBa3IzSmhOEwzda-22" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="700" y="160" as="sourcePoint" /> + <Array as="points"> + <mxPoint x="700" y="160" /> + <mxPoint x="810" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-17" target="EW1sCxBa3IzSmhOEwzda-12" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-17" value="$$m$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="670" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.445;entryY=0.014;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-19" target="EW1sCxBa3IzSmhOEwzda-22" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-19" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="830" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.833;entryY=0.003;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-21" target="EW1sCxBa3IzSmhOEwzda-22" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-21" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="900" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-22" value="$$\text{Enc}_{EPK}(m, k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1"> + <mxGeometry x="780" y="190" width="180" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-23" value="$$\text{Hash}(C || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1"> + <mxGeometry x="400" y="310" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="EW1sCxBa3IzSmhOEwzda-23" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="370" y="160" as="sourcePoint" /> + <mxPoint x="490" y="189" as="targetPoint" /> + <Array as="points"> + <mxPoint x="490" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" target="EW1sCxBa3IzSmhOEwzda-23" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="300" y="270" as="sourcePoint" /> + <mxPoint x="830" y="209" as="targetPoint" /> + <Array as="points"> + <mxPoint x="430" y="270" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-26" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-23" target="EW1sCxBa3IzSmhOEwzda-27" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="460" y="390" as="sourcePoint" /> + <mxPoint x="460" y="710" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-27" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="430" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-28" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-12" target="EW1sCxBa3IzSmhOEwzda-29" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="639.58" y="230" as="sourcePoint" /> + <mxPoint x="639.58" y="390" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-29" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="610" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-30" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-22" target="EW1sCxBa3IzSmhOEwzda-31" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="880" y="230" as="sourcePoint" /> + <mxPoint x="870" y="510" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-31" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="840" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-32" value="VOTE COMMITMENT + NULLIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" parent="1" vertex="1"> + <mxGeometry x="172.35" y="500.63" width="350" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-33" value="RULES COMPLIANCE" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="1" vertex="1"> + <mxGeometry x="542.35" y="500.63" width="210" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-34" value="VOTE ENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f5f5f5;strokeColor=#666666;fontSize=11;fontColor=#333333;" parent="1" vertex="1"> + <mxGeometry x="767.66" y="500.63" width="220" height="40" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-35" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="1" vertex="1"> + <mxGeometry x="336.42" y="315.32" width="20" height="350.63" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-36" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="1" vertex="1"> + <mxGeometry x="637.51" y="384.24" width="20" height="212.8" as="geometry" /> + </mxCell> + <mxCell id="EW1sCxBa3IzSmhOEwzda-37" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="1" vertex="1"> + <mxGeometry x="867.66" y="381.59" width="20" height="218.11" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> + <diagram name="2. authentication-circuit" id="FocDNK0yRkmTtnVSRizj"> + <mxGraphModel dx="1593" dy="837" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <root> + <mxCell id="U726NmcKOxkLk4yX-4My-0" /> + <mxCell id="U726NmcKOxkLk4yX-4My-1" parent="U726NmcKOxkLk4yX-4My-0" /> + <mxCell id="-n0zQNNrxNN8dLtkatG7-26" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="150" y="39.88" width="1270" height="590.12" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="180" y="139.88" width="1210" height="390.12" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-2" value="$$\text{Proof.verify}(\text{vote proof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="200" y="390" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-3" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-5" target="U726NmcKOxkLk4yX-4My-2"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="229.89" y="150" as="sourcePoint" /> + <mxPoint x="229.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-4" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-2" target="U726NmcKOxkLk4yX-4My-7"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="299.58" y="340" as="sourcePoint" /> + <mxPoint x="300" y="820" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-5" value="<div style="font-size: 11px;">$$\text{vote proof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="220" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-6" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="340" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-7" value="<div>$$\text{bool}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="270" y="560" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-8" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="410" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-9" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="480" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-2"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="630" y="350" as="sourcePoint" /> + <mxPoint x="830" y="319" as="targetPoint" /> + <Array as="points"> + <mxPoint x="350" y="350" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-11" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="620" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-12" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-24"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="630" y="320" as="sourcePoint" /> + <mxPoint x="630" y="530" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-13" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1240" y="560" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-14" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="550" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-15" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="690" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-16" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="760" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-17" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="540" y="280" width="180" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.23;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19" target="U726NmcKOxkLk4yX-4My-17"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="580" y="280" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="570.91" y="-87.65" width="21.21" height="419.25" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-21" target="U726NmcKOxkLk4yX-4My-23"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-21" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1120" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-23" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1110" y="190" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-24" value="$$\text{Hash}(\text{public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="540" y="385" width="180" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-26" value="$$\text{MT proof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="860" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-28" target="U726NmcKOxkLk4yX-4My-32"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1310" y="480" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-28" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1280" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-29" value="$$\text{MT root}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="930" y="70" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.31;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-24" target="U726NmcKOxkLk4yX-4My-32"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="870" y="250" as="sourcePoint" /> + <mxPoint x="940" y="480" as="targetPoint" /> + <Array as="points"> + <mxPoint x="630" y="450" /> + <mxPoint x="1232" y="450" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-32" target="U726NmcKOxkLk4yX-4My-13"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-32" value="$$\text{Signature.verify}()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1170" y="470" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1150" y="160" as="sourcePoint" /> + <mxPoint x="1270" y="470" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1270" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;entryX=0.797;entryY=0.02;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="Alor29dF2PIa9BzgdgEN-0"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1000" y="250" as="sourcePoint" /> + <mxPoint x="1420" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1000" y="290" /> + <mxPoint x="999" y="290" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="Alor29dF2PIa9BzgdgEN-0" target="Alor29dF2PIa9BzgdgEN-4"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-0" value="<div>$$\text{MT.verify}()$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="840" y="320" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-1" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="789.58" y="160" as="sourcePoint" /> + <mxPoint x="870" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="791" y="280" /> + <mxPoint x="870" y="280" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-26"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="890" y="320" as="targetPoint" /> + <mxPoint x="889.71" y="120" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-29"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="959.9" y="320" as="targetPoint" /> + <mxPoint x="959.61" y="120" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-25" target="U726NmcKOxkLk4yX-4My-17"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="880" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="688" y="250" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Alor29dF2PIa9BzgdgEN-4" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="910" y="560" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-23" target="U726NmcKOxkLk4yX-4My-25"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1150" y="230" as="sourcePoint" /> + <mxPoint x="688" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1150" y="250" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="U726NmcKOxkLk4yX-4My-25" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1040" y="230" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-13" value="VOTER'S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="200" y="660.63" width="560" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-14" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="800" y="660.63" width="307.19" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-15" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1150" y="660.63" width="230" height="40" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="470" y="370" width="20" height="561.25" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-20" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="942.19" y="497.20000000000005" width="20" height="306.87" as="geometry" /> + </mxCell> + <mxCell id="-n0zQNNrxNN8dLtkatG7-21" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxGeometry x="1254.19" y="531.88" width="20" height="237.5" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> + <diagram name="3. aggregate-circuit" id="_ty1DUuqyEsH5p35itna"> + <mxGraphModel dx="1195" dy="628" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <root> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-0" /> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-1" parent="4ZG6TFl4bt9_09IySAMJ-0" /> + <mxCell id="Dlp71_iiWKCkKO4_XMIA-3" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxGeometry x="160" y="90" width="840" height="270" as="geometry" /> + </mxCell> + <mxCell id="LftYdsKY6RAl3PnCzTcV-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxGeometry x="180" y="170" width="800" height="100" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-7" value="<div style="font-size: 11px;">$$\text{authentication proof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="200" y="110" width="130" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-8" value="<div>$$C_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="340" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-10" value="$$N_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="410" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-11" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="480" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-13" value="$$\text{weight}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="620" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-14" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" parent="4ZG6TFl4bt9_09IySAMJ-1" target="iyqm4_-RWh7QM2yxefPn-0" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="579.83" y="200" as="sourcePoint" /> + <mxPoint x="579.83" y="320" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-16" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-16" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="550" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-19" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="200" y="200" width="760" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-23" value="<div>$$\text{config}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="829.19" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-26" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="689.19" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-28" value="$$\text{MT root}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="899.19" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-29" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="759.19" y="110" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-45" value="SHARED POLLING PUBLIC INPUTS" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="679.19" y="394.01" width="280" height="40" as="geometry" /> + </mxCell> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-48" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxGeometry x="809.6400000000001" y="240.75" width="20" height="278.52" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.959;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-28" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.868;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-23" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.775;entryY=-0.01;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-29" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.684;entryY=-0.024;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-26" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.592;entryY=0.004;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-13" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.408;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-11" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.316;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-10" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.224;entryY=0.032;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-8" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="IjRa-welPacgwPaz64jX-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.085;entryY=0.018;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-7" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="gPXCQdP4MjgRAV3BPEsE-0" value="VOTES AGGREGATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxGeometry x="199.19" y="394.01" width="440" height="40" as="geometry" /> + </mxCell> + <mxCell id="gPXCQdP4MjgRAV3BPEsE-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxGeometry x="409.19" y="160" width="20" height="440" as="geometry" /> + </mxCell> + <mxCell id="iyqm4_-RWh7QM2yxefPn-0" value="$$\text{}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxGeometry x="520" y="300" width="120" height="40" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> + <diagram id="QHg5vFNSHn3RRpshBNeP" name="4. state-transition-circuit"> + <mxGraphModel dx="1434" dy="753" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + </root> + </mxGraphModel> + </diagram> +</mxfile>
@@ -0,0 +1,195 @@
+<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" version="26.3.0"> + <diagram name="Page-1" id="oUAoi1-TfJVtmyUlhwCi"> + <mxGraphModel dx="1383" dy="1869" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <mxCell id="ZugXrchefKqxSvf9OSXH-40" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="1"> + <mxGeometry x="20" width="960" height="360" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-1" value="root" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="520" y="20" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-2" value="processID" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="40" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-3" value="censusRoot" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="160" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-4" value="ballotMode" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="280" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-5" value="EPK" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="400" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-7" value="results add" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="520" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-8" value="results sub" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="640" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-9" value="encrypted ballots [...]" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="760" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-10" value="commitments [...]" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="880" y="280" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-11" value="nullifiers [...]" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="760" y="200" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-12" value="addresses [...]" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="880" y="200" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-14" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.129;entryY=0.976;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="ZugXrchefKqxSvf9OSXH-2" target="ZugXrchefKqxSvf9OSXH-15"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="70" y="280" as="sourcePoint" /> + <mxPoint x="330" y="240" as="targetPoint" /> + <Array as="points"> + <mxPoint x="80" y="250" /> + <mxPoint x="210" y="250" /> + <mxPoint x="350" y="250" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-15" value="hash()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="340" y="200" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-16" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.25;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" target="ZugXrchefKqxSvf9OSXH-15"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="200" y="280" as="sourcePoint" /> + <mxPoint x="460" y="240" as="targetPoint" /> + <Array as="points"> + <mxPoint x="200" y="260" /> + <mxPoint x="340" y="260" /> + <mxPoint x="360" y="260" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-17" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.374;entryY=1.002;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="ZugXrchefKqxSvf9OSXH-15"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="320" y="280" as="sourcePoint" /> + <mxPoint x="480" y="240" as="targetPoint" /> + <Array as="points"> + <mxPoint x="320" y="270" /> + <mxPoint x="370" y="270" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-18" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.617;entryY=1.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="ZugXrchefKqxSvf9OSXH-5" target="ZugXrchefKqxSvf9OSXH-15"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="330" y="280" as="sourcePoint" /> + <mxPoint x="380" y="240" as="targetPoint" /> + <Array as="points"> + <mxPoint x="440" y="270" /> + <mxPoint x="390" y="270" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-19" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=1;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="ZugXrchefKqxSvf9OSXH-7" target="ZugXrchefKqxSvf9OSXH-15"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="230" y="280" as="sourcePoint" /> + <mxPoint x="390" y="240" as="targetPoint" /> + <Array as="points"> + <mxPoint x="560" y="260" /> + <mxPoint x="400" y="260" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-20" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.877;entryY=0.995;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="ZugXrchefKqxSvf9OSXH-8" target="ZugXrchefKqxSvf9OSXH-15"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="640" y="260" as="sourcePoint" /> + <mxPoint x="400" y="240" as="targetPoint" /> + <Array as="points"> + <mxPoint x="680" y="250" /> + <mxPoint x="410" y="250" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-22" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" target="ZugXrchefKqxSvf9OSXH-11"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="800" y="280" as="sourcePoint" /> + <mxPoint x="850" y="230" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-23" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="919.5699999999999" y="280" as="sourcePoint" /> + <mxPoint x="919.5699999999999" y="240" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-25" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="380" y="200" as="sourcePoint" /> + <mxPoint x="430" y="160" as="targetPoint" /> + <Array as="points"> + <mxPoint x="380" y="180" /> + <mxPoint x="430" y="180" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-26" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="800" y="200" as="sourcePoint" /> + <mxPoint x="720" y="160" as="targetPoint" /> + <Array as="points"> + <mxPoint x="800" y="180" /> + <mxPoint x="720" y="180" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-27" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="920" y="200" as="sourcePoint" /> + <mxPoint x="840" y="160" as="targetPoint" /> + <Array as="points"> + <mxPoint x="920" y="180" /> + <mxPoint x="840" y="180" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-28" value="hash()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="390" y="120" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-29" value="hash()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="680" y="120" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-30" value="hash()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry x="800" y="120" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-31" value="" style="endArrow=none;dashed=1;html=1;dashPattern=1 3;strokeWidth=2;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="500" y="139.57" as="sourcePoint" /> + <mxPoint x="640" y="139.57" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-33" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="559.57" y="90" as="sourcePoint" /> + <mxPoint x="559.57" y="60" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-34" value="0x0" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> + <mxGeometry x="50" y="320" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-35" value="0x1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> + <mxGeometry x="170" y="320" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-36" value="0x2" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> + <mxGeometry x="290" y="320" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-37" value="0x3" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> + <mxGeometry x="410" y="320" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-38" value="0x4" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> + <mxGeometry x="530" y="320" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-39" value="0x5" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> + <mxGeometry x="650" y="320" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ZugXrchefKqxSvf9OSXH-41" value="state MT structure" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxGeometry x="30" y="10" width="120" height="30" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> +</mxfile>
@@ -0,0 +1,288 @@
+<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" version="26.3.0"> + <diagram name="Page-1" id="w7KB5Wdl0Kbl-dEWBDwj"> + <mxGraphModel dx="2765" dy="1538" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-88" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> + <mxGeometry width="800" height="1280" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-66" value="Fetch current state root and data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="860" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-67" value="Verify individual votes and accumulate" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="900" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-68" value="Build zkSNARK proof for state transition" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="400" y="960" width="160" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-69" value="Send new state root and updated data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="1020" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-70" value="Publish shares of EPK after voting ends" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="400" y="1100" width="160" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-71" value="Reward for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="1140" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-45" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1"> + <mxGeometry x="120" y="560" width="480" height="520" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-63" value="Generate zkSNARK proof proving the validity of the encrypted vote" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="160" y="760" width="240" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-62" value="Encrypt vote choice using the encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="160" y="700" width="240" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-53" value="Verify encryption shares" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="560" y="300" width="120" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-54" value="Create encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="560" y="360" width="120" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-44" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1"> + <mxGeometry x="360" y="200" width="320" height="240" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-55" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="460" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-1" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="80" y="1240" as="sourcePoint" /> + <mxPoint x="80" y="80" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-3" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="1240" as="sourcePoint" /> + <mxPoint x="400" y="80" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-4" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="560" y="1240" as="sourcePoint" /> + <mxPoint x="560" y="80" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-5" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="720" y="1240" as="sourcePoint" /> + <mxPoint x="720" y="80" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-12" value="Ethereum SC" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxGeometry x="520" y="50" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-13" value="<div>IPFS</div>" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxGeometry x="680" y="50" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-14" value="Sequencer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxGeometry x="360" y="50" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-15" value="Voter" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxGeometry x="120" y="50" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-16" value="Organizer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxGeometry x="40" y="50" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-20" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="560" y="480" as="sourcePoint" /> + <mxPoint x="400" y="480" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-21" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="560" y="380" as="sourcePoint" /> + <mxPoint x="560" y="400" as="targetPoint" /> + <Array as="points"> + <mxPoint x="600" y="380" /> + <mxPoint x="640" y="380" /> + <mxPoint x="640" y="400" /> + <mxPoint x="600" y="400" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-22" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="560" y="320" as="sourcePoint" /> + <mxPoint x="560" y="340" as="targetPoint" /> + <Array as="points"> + <mxPoint x="600" y="320" /> + <mxPoint x="640" y="320" /> + <mxPoint x="640" y="340" /> + <mxPoint x="600" y="340" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-30" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="720" as="sourcePoint" /> + <mxPoint x="160" y="740" as="targetPoint" /> + <Array as="points"> + <mxPoint x="240" y="720" /> + <mxPoint x="240" y="740" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-31" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="780" as="sourcePoint" /> + <mxPoint x="160" y="800" as="targetPoint" /> + <Array as="points"> + <mxPoint x="240" y="780" /> + <mxPoint x="240" y="800" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-34" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="880" as="sourcePoint" /> + <mxPoint x="560" y="880" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-37" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="920" as="sourcePoint" /> + <mxPoint x="400" y="940" as="targetPoint" /> + <Array as="points"> + <mxPoint x="460" y="920" /> + <mxPoint x="480" y="920" /> + <mxPoint x="480" y="940" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-38" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="980" as="sourcePoint" /> + <mxPoint x="400" y="1000" as="targetPoint" /> + <Array as="points"> + <mxPoint x="480" y="980" /> + <mxPoint x="480" y="1000" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-39" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="1040" as="sourcePoint" /> + <mxPoint x="560" y="1040" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-40" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="1120" as="sourcePoint" /> + <mxPoint x="560" y="1120" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-41" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="560" y="1160" as="sourcePoint" /> + <mxPoint x="400" y="1160" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-47" value="Publish census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="280" y="100" width="240" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-50" value="Create new voting process (Merkle tree, details) and pay" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="180" y="140" width="280" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-2" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="1240" as="sourcePoint" /> + <mxPoint x="160" y="80" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-51" value="Provide collateral for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="220" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-17" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="80" y="120" as="sourcePoint" /> + <mxPoint x="720" y="120" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-18" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="80" y="160" as="sourcePoint" /> + <mxPoint x="560" y="160" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-52" value="Generate and publish encryption share" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="410" y="260" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-19" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="240" as="sourcePoint" /> + <mxPoint x="560" y="240" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-23" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="280" as="sourcePoint" /> + <mxPoint x="560" y="280" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-56" value="Download census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="490" y="500" width="140" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-24" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="400" y="520" as="sourcePoint" /> + <mxPoint x="720" y="520" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-57" value="<font style="font-size: 8px;">DKG process</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="1"> + <mxGeometry x="360" y="200" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-58" value="<font style="font-size: 8px;">voting loop</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="1"> + <mxGeometry x="120" y="560" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-59" value="Fetch voting process details" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="240" y="580" width="240" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-60" value="Fetch census Merkle proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="200" y="620" width="160" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-61" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="240" y="660" width="240" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-25" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="600" as="sourcePoint" /> + <mxPoint x="560" y="600" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-27" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="680" as="sourcePoint" /> + <mxPoint x="560" y="680" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-26" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="640" as="sourcePoint" /> + <mxPoint x="400" y="640" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-64" value="Send encrypted vote, Merkle proof, and identity proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="180" y="820" width="200" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-32" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="160" y="840" as="sourcePoint" /> + <mxPoint x="400" y="840" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-72" value="Decrypt results once the EPK threshold is reached" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxGeometry x="200" y="1180" width="240" height="20" as="geometry" /> + </mxCell> + <mxCell id="pK1FVDeCFm6uw4lnA_kY-42" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="560" y="1200" as="sourcePoint" /> + <mxPoint x="80" y="1200" as="targetPoint" /> + </mxGeometry> + </mxCell> + </root> + </mxGraphModel> + </diagram> +</mxfile>
@@ -0,0 +1,451 @@
+<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.3" pages="2"> + <diagram name="Copy of Page-1" id="GXqdlbCB9lpYnUvX6Q1z"> + <mxGraphModel dx="1517" dy="1728" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"> + <root> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-0" /> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-1" parent="V2N6_Z3ANFqjPdOCeADp-0" /> + <mxCell id="uPCFO2vmJDgjY3oAvew6-5" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;dashed=1;dashPattern=1 1;strokeColor=#6c8ebf;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="460" y="-120" width="160" height="760" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-2" value="" style="group" vertex="1" connectable="0" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="470" y="-70" width="140" height="32.5" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-3" value="" style="endArrow=none;html=1;rounded=0;entryX=0.53;entryY=0.488;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-2" target="V2N6_Z3ANFqjPdOCeADp-6"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="14" y="16.25" as="sourcePoint" /> + <mxPoint x="49" y="-24.375" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-4" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-2"> + <mxGeometry width="28" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-5" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-2"> + <mxGeometry x="56" width="28" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-6" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-2"> + <mxGeometry x="112" width="28" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-7" value="" style="group" vertex="1" connectable="0" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="475" y="-110" width="130" height="20" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-8" value="" style="shape=image;html=1;verticalAlign=top;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;imageAspect=0;aspect=fixed;image=https://cdn0.iconfinder.com/data/icons/phosphor-light-vol-2/256/currency-eth-light-128.png" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-7"> + <mxGeometry width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-9" value="Ethereum blockchain" style="text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Garamond;fontSize=10;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-7"> + <mxGeometry x="20" width="110" height="20" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" source="V2N6_Z3ANFqjPdOCeADp-10" target="V2N6_Z3ANFqjPdOCeADp-12"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-10" value="<font style="font-size: 9px;"><b>process management</b> smart contract</font>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#000000;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="480" y="240" width="120" height="130" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" source="V2N6_Z3ANFqjPdOCeADp-11" target="V2N6_Z3ANFqjPdOCeADp-10"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-11" value="<div><font color="#000000" style="font-size: 9px;"><b>sequencer registry</b><br></font></div><div><font color="#000000" style="font-size: 9px;">smart contract</font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="480" width="120" height="130" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-12" value="<div><font style="font-size: 9px;"><b>results verification</b></font></div><div><font style="font-size: 9px;">smart contract<b><br></b></font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#000000;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="480" y="480" width="120" height="130" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-14" value="" style="group;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" connectable="0" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="200" y="225" width="80" height="70" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-15" value="<font face="Garamond">organizer</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-14"> + <mxGeometry y="40" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-16" value="" style="shape=image;html=1;verticalAlign=top;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;imageAspect=0;aspect=fixed;image=https://cdn1.iconfinder.com/data/icons/business-and-finance-20/200/vector_65_02-128.png" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-14"> + <mxGeometry x="15" width="50" height="50" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-19" value="" style="endArrow=classic;html=1;rounded=0;entryX=1.026;entryY=0.615;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-14" target="uPCFO2vmJDgjY3oAvew6-16"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint y="34.79000000000002" as="sourcePoint" /> + <mxPoint x="-80" y="35" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-17" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="280" y="260" as="sourcePoint" /> + <mxPoint x="480" y="260" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-25" value="" style="endArrow=classic;html=1;rounded=0;entryX=1.006;entryY=0.459;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" target="V2N6_Z3ANFqjPdOCeADp-11"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="760" y="60" as="sourcePoint" /> + <mxPoint x="610" y="60.34000000000003" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-26" value="distributed key generation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="610" y="30" width="150" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-27" value="census data commitment, process details" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="330" y="225" width="100" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-29" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.085;exitY=0.592;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" source="V2N6_Z3ANFqjPdOCeADp-13"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="200" y="420" as="sourcePoint" /> + <mxPoint x="80" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="80" y="420" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-30" value="fetch census data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="100" y="390" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-31" value="" style="endArrow=classic;html=1;rounded=0;entryX=-0.005;entryY=0.384;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" target="V2N6_Z3ANFqjPdOCeADp-10"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="260" y="420" as="sourcePoint" /> + <mxPoint x="480" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="360" y="420" /> + <mxPoint x="360" y="290" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-33" value="fetch process data and encryption key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="280" y="390" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-34" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="239.85" y="470" as="sourcePoint" /> + <mxPoint x="239.85" y="570" as="targetPoint" /> + <Array as="points"> + <mxPoint x="239.85" y="570" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-35" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="280" y="420" as="sourcePoint" /> + <mxPoint x="280" y="420" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-39" value="encrypted vote, proof of correct vote, census membership proof, signature" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="150" y="500" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-40" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.001;entryY=0.617;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" target="V2N6_Z3ANFqjPdOCeADp-10"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="280" y="590" as="sourcePoint" /> + <mxPoint x="480" y="300" as="targetPoint" /> + <Array as="points"> + <mxPoint x="400" y="590" /> + <mxPoint x="400" y="360" /> + <mxPoint x="400" y="320" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-41" value="fetch process data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="280" y="560" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-1" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.009;entryY=0.845;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="V2N6_Z3ANFqjPdOCeADp-1" target="V2N6_Z3ANFqjPdOCeADp-10"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="280" y="610" as="sourcePoint" /> + <mxPoint x="470" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="400" y="610" /> + <mxPoint x="440" y="610" /> + <mxPoint x="440" y="390" /> + <mxPoint x="440" y="350" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-3" value="encryption key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="540" y="170" width="80" height="20" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-7" value="" style="group;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" connectable="0" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="215" y="390" width="50" height="80" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-13" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="uPCFO2vmJDgjY3oAvew6-7"> + <mxGeometry x="5" width="40" height="50" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-28" value="<font face="Garamond">voter</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="uPCFO2vmJDgjY3oAvew6-7"> + <mxGeometry y="50" width="50" height="30" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-8" value="" style="group;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" connectable="0" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="200" y="570" width="80" height="80" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-37" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="uPCFO2vmJDgjY3oAvew6-8"> + <mxGeometry x="20" width="40" height="50" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-38" value="<font face="Garamond">sequencer</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="uPCFO2vmJDgjY3oAvew6-8"> + <mxGeometry y="50" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-9" value="" style="group;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" connectable="0" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="760" y="20" width="90" height="90" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-18" value="" style="group" vertex="1" connectable="0" parent="uPCFO2vmJDgjY3oAvew6-9"> + <mxGeometry x="10" width="70" height="60" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-19" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-18"> + <mxGeometry y="6.666666666666667" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-20" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-18"> + <mxGeometry x="28.899082568807337" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-21" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-18"> + <mxGeometry x="12.844036697247706" y="19.999999999999996" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-22" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-18"> + <mxGeometry x="25.68807339449541" y="26.666666666666668" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-23" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-18"> + <mxGeometry x="44.31192660550459" y="19.999999999999996" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="V2N6_Z3ANFqjPdOCeADp-24" value="<font face="Garamond">sequencers</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="uPCFO2vmJDgjY3oAvew6-9"> + <mxGeometry y="60" width="90" height="30" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-16" value="" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=1;shadow=0;dashed=0;shape=mxgraph.ios7.icons.data;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="50" y="230" width="60" height="49.1" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-17" value="census data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="130" y="230" width="70" height="30" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-21" value="1" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="195" y="220" width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-22" value="2" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="840" y="10" width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-23" value="3" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="200" y="380" width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-24" value="4" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="190" y="560" width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="uPCFO2vmJDgjY3oAvew6-25" value="5" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="V2N6_Z3ANFqjPdOCeADp-1"> + <mxGeometry x="585" y="470" width="20" height="20" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> + <diagram name="Copy of Copy of Page-1" id="9_ijZpfl23uZW4xNUKwr"> + <mxGraphModel dx="986" dy="571" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"> + <root> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-0" /> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-1" parent="Iu_7Bu9hSgdt7ye1YoMF-0" /> + <mxCell id="ilFAUQE9p3K1V1cAkD8p-7" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="160" y="80" width="820" height="640" as="geometry" /> + </mxCell> + <mxCell id="ilFAUQE9p3K1V1cAkD8p-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;dashed=1;dashPattern=1 1;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="410" y="600" width="80" height="100" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;dashed=1;dashPattern=1 1;strokeColor=#6c8ebf;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="180" y="100" width="780" height="210" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1" source="Iu_7Bu9hSgdt7ye1YoMF-12" target="Iu_7Bu9hSgdt7ye1YoMF-15"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-12" value="<font style="font-size: 9px;"><b>process management</b><br>smart contract</font>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#000000;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="480" y="160" width="180" height="120" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1" source="Iu_7Bu9hSgdt7ye1YoMF-14" target="Iu_7Bu9hSgdt7ye1YoMF-12"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-14" value="<div><font color="#000000" style="font-size: 9px;"><b>sequencer registry</b><br></font></div><div><font color="#000000" style="font-size: 9px;">smart contract</font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="200" y="160" width="180" height="120" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-20" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="450" y="440" as="sourcePoint" /> + <mxPoint x="510" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="450" y="400" /> + <mxPoint x="510" y="400" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-21" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1" target="Iu_7Bu9hSgdt7ye1YoMF-14"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="290" y="440" as="sourcePoint" /> + <mxPoint x="280.0000000000002" y="280.00000000000017" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-25" value="fetch census data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="490" y="631" width="80" height="19.55" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-27" value="fetch process data and encryption key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="490" y="401" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-29" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="660" y="760" as="sourcePoint" /> + <mxPoint x="660" y="760" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-30" value="encrypted vote, proof of correct vote, census membership proof, signature" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="617.5" y="460" width="135" height="30" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-49" value="" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=1;shadow=0;dashed=0;shape=mxgraph.ios7.icons.data;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="420" y="620" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="lkK_xYMYs6qSP8etcj2q-0" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="790" y="440" as="sourcePoint" /> + <mxPoint x="590" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="790" y="400" /> + <mxPoint x="680" y="400" /> + <mxPoint x="590" y="400" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="lkK_xYMYs6qSP8etcj2q-1" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="820" y="440" as="sourcePoint" /> + <mxPoint x="630" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="820" y="380" /> + <mxPoint x="720" y="380" /> + <mxPoint x="630" y="380" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="lkK_xYMYs6qSP8etcj2q-2" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="570" y="440" as="sourcePoint" /> + <mxPoint x="550" y="280" as="targetPoint" /> + <Array as="points"> + <mxPoint x="570" y="400" /> + <mxPoint x="550" y="400" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-11" value="" style="group" vertex="1" connectable="0" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="240" y="430" width="90" height="110" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-41" value="" style="group;fillColor=#e1d5e7;strokeColor=#9673a6;container=0;" vertex="1" connectable="0" parent="srKLONURFAAzG-BD-hus-11"> + <mxGeometry x="10" y="10" width="80" height="100" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-52" value="2" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="srKLONURFAAzG-BD-hus-11"> + <mxGeometry width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-42" value="" style="group" vertex="1" connectable="0" parent="srKLONURFAAzG-BD-hus-11"> + <mxGeometry x="17" y="18" width="70" height="60" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-43" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-42"> + <mxGeometry y="6.666666666666667" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-44" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-42"> + <mxGeometry x="28.899082568807337" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-45" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-42"> + <mxGeometry x="12.844036697247706" y="19.999999999999996" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-46" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-42"> + <mxGeometry x="25.68807339449541" y="26.666666666666668" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-47" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-42"> + <mxGeometry x="44.31192660550459" y="19.999999999999996" width="25.68807339449541" height="33.33333333333333" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-0" value="sequencers" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="srKLONURFAAzG-BD-hus-11"> + <mxGeometry x="10" y="78" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-13" value="" style="group" vertex="1" connectable="0" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="400" y="430" width="90" height="110" as="geometry" /> + </mxCell> + <mxCell id="gYZxT68eDZA619NTKZw1-5" value="" style="group" vertex="1" connectable="0" parent="srKLONURFAAzG-BD-hus-13"> + <mxGeometry x="10" y="10" width="80" height="100" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-16" value="" style="group;fillColor=#fff2cc;strokeColor=#d6b656;container=0;" vertex="1" connectable="0" parent="gYZxT68eDZA619NTKZw1-5"> + <mxGeometry width="80" height="100" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-18" value="" style="shape=image;html=1;verticalAlign=top;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;imageAspect=0;aspect=fixed;image=https://cdn1.iconfinder.com/data/icons/business-and-finance-20/200/vector_65_02-128.png" vertex="1" parent="gYZxT68eDZA619NTKZw1-5"> + <mxGeometry x="10" y="10" width="60" height="60" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-1" value="organizer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="gYZxT68eDZA619NTKZw1-5"> + <mxGeometry y="70" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-51" value="1" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="srKLONURFAAzG-BD-hus-13"> + <mxGeometry width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-14" value="" style="group" vertex="1" connectable="0" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="520" y="430" width="90" height="110" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-35" value="" style="group;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" vertex="1" connectable="0" parent="srKLONURFAAzG-BD-hus-14"> + <mxGeometry x="10" y="10" width="80" height="100" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-53" value="3" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="srKLONURFAAzG-BD-hus-14"> + <mxGeometry width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-36" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="srKLONURFAAzG-BD-hus-14"> + <mxGeometry x="30" y="28" width="40" height="50" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-6" value="voter" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="srKLONURFAAzG-BD-hus-14"> + <mxGeometry x="10" y="80" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="ilFAUQE9p3K1V1cAkD8p-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="srKLONURFAAzG-BD-hus-14"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="89.19999999999999" y="60" as="sourcePoint" /> + <mxPoint x="240" y="60" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-15" value="" style="group" vertex="1" connectable="0" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="750" y="430" width="90" height="110" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-7" value="" style="group;fillColor=#e1d5e7;strokeColor=#9673a6;container=0;" vertex="1" connectable="0" parent="srKLONURFAAzG-BD-hus-15"> + <mxGeometry x="10" y="10" width="80" height="100" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-8" value="4" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="srKLONURFAAzG-BD-hus-15"> + <mxGeometry width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-9" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" vertex="1" parent="srKLONURFAAzG-BD-hus-15"> + <mxGeometry x="30" y="28" width="40" height="50" as="geometry" /> + </mxCell> + <mxCell id="srKLONURFAAzG-BD-hus-10" value="sequencer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="srKLONURFAAzG-BD-hus-15"> + <mxGeometry x="10" y="80" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-9" value="" style="shape=image;html=1;verticalAlign=top;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;imageAspect=0;aspect=fixed;image=https://cdn0.iconfinder.com/data/icons/phosphor-light-vol-2/256/currency-eth-light-128.png" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="500" y="120" width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-10" value="<div align="right">Ethereum blockchain</div>" style="text;strokeColor=none;align=right;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Garamond;fontSize=10;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="520" y="120" width="110" height="20" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-15" value="<div><font style="font-size: 9px;"><b>results verification</b></font></div><div><font style="font-size: 9px;">smart contract<b><br></b></font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#000000;strokeColor=#666666;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="760" y="155" width="180" height="130" as="geometry" /> + </mxCell> + <mxCell id="Iu_7Bu9hSgdt7ye1YoMF-55" value="5" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="750" y="145" width="20" height="20" as="geometry" /> + </mxCell> + <mxCell id="lznc5bEyJSZAmeDWeBLt-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1" source="srKLONURFAAzG-BD-hus-1" target="Iu_7Bu9hSgdt7ye1YoMF-49"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="lznc5bEyJSZAmeDWeBLt-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1.017;entryY=0.611;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1" source="srKLONURFAAzG-BD-hus-6" target="Iu_7Bu9hSgdt7ye1YoMF-49"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="570" y="540" as="sourcePoint" /> + <mxPoint x="570" y="630" as="targetPoint" /> + <Array as="points"> + <mxPoint x="570" y="650" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="lm6KFXZ0J-xEOVUp7bA3-0" value="collect census data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="450" y="560" width="50" height="30" as="geometry" /> + </mxCell> + <mxCell id="WomZZaRZjT9QcHENkQK_-0" value="census data commitment, process details" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="405" y="370" width="110" height="30" as="geometry" /> + </mxCell> + <mxCell id="_AIhl84Dl-MKm8ExY_EF-0" value="fetch process data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="710" y="399" width="80" height="30" as="geometry" /> + </mxCell> + <mxCell id="_AIhl84Dl-MKm8ExY_EF-1" value="processed votes and proofs" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="650" y="350" width="70" height="30" as="geometry" /> + </mxCell> + <mxCell id="ilFAUQE9p3K1V1cAkD8p-0" value="distributed<br>key generation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="230" y="360" width="60" height="30" as="geometry" /> + </mxCell> + <mxCell id="ilFAUQE9p3K1V1cAkD8p-8" value="encryption key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="380" y="190" width="100" height="30" as="geometry" /> + </mxCell> + <mxCell id="ilFAUQE9p3K1V1cAkD8p-9" value="encrypted results" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="660" y="190" width="100" height="30" as="geometry" /> + </mxCell> + <mxCell id="r84E_1G94DKbnbEAxcN0-0" value="census data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=8;" vertex="1" parent="Iu_7Bu9hSgdt7ye1YoMF-1"> + <mxGeometry x="425" y="669.1" width="50" height="30" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> +</mxfile>
@@ -0,0 +1,160 @@
+<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.1"> + <diagram name="Page-1" id="vCdj5PMNbiW-dyhMuqKx"> + <mxGraphModel dx="1434" dy="753" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <mxCell id="NDshzNdX3U-lBisqk44h-9" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" vertex="1" parent="1"> + <mxGeometry x="130" y="60" width="890" height="400" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-40" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="160" y="140" width="840" height="230" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-2" value="$$\text{Hash}(\text{address} || \text{processID} || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1"> + <mxGeometry x="200" y="190" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-8" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.849;entryY=-0.009;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-17" target="CFx7_840UiJ9a2tUSkKx-2" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="370" y="160" as="sourcePoint" /> + <mxPoint x="369.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-9" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-16" target="CFx7_840UiJ9a2tUSkKx-2" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="300" y="160" as="sourcePoint" /> + <mxPoint x="299.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-10" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.149;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-15" target="CFx7_840UiJ9a2tUSkKx-2" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="229.89" y="150" as="sourcePoint" /> + <mxPoint x="229.89" y="200" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-11" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-2" target="CFx7_840UiJ9a2tUSkKx-18" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="299.58" y="230" as="sourcePoint" /> + <mxPoint x="300" y="710" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-15" value="<div style="font-size: 11px;">$$\text{address}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="200" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-16" value="$$\text{processID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="270" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-17" value="$$s$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="340" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-18" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="270" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-19" value="$$\text{protocolRulesCompliance}(\text{config}, m)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="520" y="190" width="240" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-20" target="CFx7_840UiJ9a2tUSkKx-19" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-20" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="550" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.165;entryY=-0.015;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="CFx7_840UiJ9a2tUSkKx-24" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="700" y="160" as="sourcePoint" /> + <Array as="points"> + <mxPoint x="700" y="160" /> + <mxPoint x="810" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-21" target="CFx7_840UiJ9a2tUSkKx-19" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-21" value="$$m$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="670" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.445;entryY=0.014;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-22" target="CFx7_840UiJ9a2tUSkKx-24" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-22" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="830" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.833;entryY=0.003;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-23" target="CFx7_840UiJ9a2tUSkKx-24" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-23" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="900" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-24" value="$$\text{Enc}_{EPK}(m, k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1"> + <mxGeometry x="780" y="190" width="180" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-25" value="$$\text{Hash}(C || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1"> + <mxGeometry x="400" y="310" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="CFx7_840UiJ9a2tUSkKx-25" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="370" y="160" as="sourcePoint" /> + <mxPoint x="490" y="189" as="targetPoint" /> + <Array as="points"> + <mxPoint x="490" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" target="CFx7_840UiJ9a2tUSkKx-25" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="300" y="270" as="sourcePoint" /> + <mxPoint x="830" y="209" as="targetPoint" /> + <Array as="points"> + <mxPoint x="430" y="270" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-34" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-25" target="CFx7_840UiJ9a2tUSkKx-35" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="460" y="390" as="sourcePoint" /> + <mxPoint x="460" y="710" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-35" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="430" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-36" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-19" target="CFx7_840UiJ9a2tUSkKx-37" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="639.58" y="230" as="sourcePoint" /> + <mxPoint x="639.58" y="390" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-37" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="610" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-38" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-24" target="CFx7_840UiJ9a2tUSkKx-39" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="880" y="230" as="sourcePoint" /> + <mxPoint x="870" y="510" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="CFx7_840UiJ9a2tUSkKx-39" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxGeometry x="840" y="390" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="NDshzNdX3U-lBisqk44h-1" value="VOTE COMMITMENT + NULLIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" vertex="1" parent="1"> + <mxGeometry x="172.35" y="500.63" width="350" height="40" as="geometry" /> + </mxCell> + <mxCell id="NDshzNdX3U-lBisqk44h-2" value="RULES COMPLIANCE" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1"> + <mxGeometry x="542.35" y="500.63" width="210" height="40" as="geometry" /> + </mxCell> + <mxCell id="NDshzNdX3U-lBisqk44h-3" value="VOTE ENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f5f5f5;strokeColor=#666666;fontSize=11;fontColor=#333333;" vertex="1" parent="1"> + <mxGeometry x="767.66" y="500.63" width="220" height="40" as="geometry" /> + </mxCell> + <mxCell id="NDshzNdX3U-lBisqk44h-4" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="1"> + <mxGeometry x="336.42" y="315.32" width="20" height="350.63" as="geometry" /> + </mxCell> + <mxCell id="NDshzNdX3U-lBisqk44h-5" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="1"> + <mxGeometry x="637.51" y="384.24" width="20" height="212.8" as="geometry" /> + </mxCell> + <mxCell id="NDshzNdX3U-lBisqk44h-6" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="1"> + <mxGeometry x="867.66" y="381.59" width="20" height="218.11" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> +</mxfile>
@@ -0,0 +1,92 @@
+% !TeX root = ../build/main.tex + + +\martai{This section is old text, it needs to be reviewed.} + +\subsection{Security discussion} +\label{sec:analysis:security} + +Make a section called \textit{properties}? + +\subsubsection{Receipt-freeness} + +In democratic processes, the ability of voters to cast their votes freely, without undue influence or coercion, is crucial. A critical aspect of maintaining this freedom is ensuring receipt-freeness, preventing voters from being able to prove to third parties how they voted. Vocdoni Z implements receipt-freeness by leveraging the properties of the ElGamal cryptosystem, and zkSNARKs. + +\paragraph{Ballor re-encryption} + +The ElGamal cryptosystem over elliptic curves supports additive homomorphism, allowing operations to be performed on ciphertexts that translate to addition on the underlying plaintexts. Re-encryption is a process that refreshes the randomness of a ciphertext without changing the underlying plaintext message. This makes computationally infeasible to link the original and re-encrypted ciphertexts. + +\paragraph{Handling Receipts} + +To prevent voters from being able to prove how they voted, Vocdoni Z employs re-encryption of ballots by the Sequencers. When a voter submits an encrypted ballot, the Sequencer re-encrypts it before storing it in the state Merkle tree. + +This way, the system ensures that voters cannot produce a receipt of their vote by revealing r since the stored ciphertext no longer corresponds to r. This prevents vote-buying and coercion by third parties. + +\paragraph{Handling Collusion} + +To further enhance receipt-freeness and mitigate the risk of collusion between voters and Sequencers, Vocdoni Z allows voters to overwrite their votes. A voter can submit multiple votes, with each new submission replacing the previous one. + +When a Sequencer receives a new vote from a voter who has already voted, it performs the following steps: + +\begin{enumerate} + \item \textbf{Detect overwrite}: The Sequencer checks the state Merkle tree using the voter's nullifier to determine if the voter has previously cast a vote. + \item \textbf{Subtract previous vote}: The Sequencer takes the existing encrypted ballot and adds it to a "Subtractive Results" accumulator. This effectively negates the previous vote in the final tally. + \item \textbf{Add new vote}: The new encrypted ballot is added to the "Results" accumulator. + \item \textbf{Update state Merkle tree}: The Sequencer re-encrypts the new ballot and updates the state Merkle tree with this re-encrypted ballot. +\end{enumerate} + +\paragraph{Concealing Vote Overwrites} + +To prevent observers from detecting when overwrites occur, the Sequencers regularly re-encrypt a random subset of ballots in the state Merkle tree during each state update. This process obscures the occurrence of overwrites, as re-encryptions are indistinguishable from standard re-randomizations performed for privacy enhancement. + +By re-encrypting random ballots, the system increases the entropy and makes it statistically improbable for an adversary to determine if a specific ballot was overwritten or simply re-randomized. + +\subsubsection{Privacy} + +Vocdoni Z ensures user anonymity by anonymizing both the ballot and the voter's identity, employing cryptographic techniques that maintain privacy even in the face of future quantum computing threats. The system uses the ElGamal homomorphic encryption scheme to encrypt ballots, allowing for the aggregation of votes without revealing individual choices. Since encrypted ballots are stored in public repositories like Ethereum blobs—which, although removed after some weeks, may still be accessible—it is crucial to prevent any association between decrypted ballots and voter identities. By decoupling the voter's identity from their encrypted ballot through the use of secrets and cryptographic hashes, even if an adversary decrypts the ballots in the future, they cannot link them back to individual voters. + +The identity anonymization acts as a double security factor, enhancing long-term privacy. While the Sequencer processing the vote can identify the voter (since voters submit proofs of eligibility and commitments), there is no incentive for the Sequencer to make this information public, and the Sequencer cannot decrypt the voter's ballot because they do not possess the private decryption keys. This ensures that voter choices remain confidential. + +We have adopted this partial identity anonymization because generating fully anonymous proofs using zkSNARKs directly from digital signatures (e.g., ECDSA/EdDSA or RSA) is computationally intensive for client-side devices like browsers and smartphones. Our priority is to support a wide range of devices, making the system accessible to as many voters as possible. In the future, as cryptographic technology advances and client devices become more powerful, we anticipate being able to generate such zero-knowledge proofs efficiently on the client side. This would enable us to fully anonymize the client's identity in addition to the ballot, further enhancing user privacy without compromising accessibility or user experience. + +\subsubsection{Quantum resistance} + +As quantum computing technology advances, it poses significant challenges to classical cryptographic schemes that underpin the security of digital systems, including voting platforms like Vocdoni Z. Ensuring that the system remains secure in the face of quantum threats is crucial for its longevity and trustworthiness. + +Quantum computers have the potential to solve certain mathematical problems exponentially faster than classical computers. Notably, Shor's algorithm allows quantum computers to efficiently factor large integers and compute discrete logarithms, undermining the security of widely used cryptographic schemes such as RSA, DSA, ECDSA, and the ElGamal cryptosystem. + +However, the design of Vocdoni Z incorporates mechanisms that preserve voter anonymity even in the face of future quantum attacks: + +\begin{itemize} + \item Detachment of identity and encrypted Ballot: The voter's identity and their encrypted ballot are decoupled through the use of a secret in the nullifier. The nullifier is computed as: + $$ N = \text{Hash}(\text{ProcessId} || s) $$ + where is a secret known only to the voter. This means that even if an adversary decrypts the encrypted ballots using a quantum computer, they cannot link a decrypted vote back to a voter's identity in the census without knowledge of the secret $s$. + \martai{Instead of ``detachment", I propose ``unlinkability": identity unlinkability.} + \item Quantum-resistant hash functions: the \nullifier and \commitment are computed using cryptographic hash functions that are believed to be resistant to quantum attacks (e.g., SHA-3). While Grover's algorithm can provide a quadratic speedup in searching for preimages, using sufficiently long hash outputs (e.g., 256 bits) mitigates this risk. +\end{itemize} + +To further safeguard against quantum threats, the following measures can be implemented in the future: + +\begin{enumerate} + \item Adopt post-quantum signature schemes. Replace ECDSA/EdDSA with quantum-resistant algorithms such as CRYSTALS-Dilithium, Falcon, or Rainbow, which are based on hard lattice problems. + + \item Explore lattice-based homomorphic encryption schemes. Replace ElGamal cryptosystem with quantum-resistant alternatives such as the Brakerski-Gentry-Vaikuntanathan (BGV) or the Brakerski/Fan-Vercauteren (BFV) schemes. + + \item Adopt quantum-resistant zero-knowledge proof systems, such as zkSNARK constructions based on post-quantum assumptions or \textbf{zkSTARKs}. +\end{enumerate} + +\martai{Citations to protocols are missing.} + +\martai{If it is not quantum resistant, I would leave it to future work. Although unconventional, we could also make a ``protocol weaknesses'' section.} + +\subsubsection{Data availability} + +\subsection{Implementation} +\label{sec:analysis:implementation} + +\martai{Link to repos, etc. + details such as circuits have been implemented using \texttt{circom}, this and that.} + +\subsection{Performance evaluation} +\label{sec:analysis:performance-evaluation} + +\martai{E.g. circuit constraints benchmarks.}
@@ -0,0 +1,31 @@
+% !TeX root = ../build/main.tex + +\subsection{Interplanetary file system (IPFS)} +\label{sec:background:ipfs} + +\begin{itemize} + \item Brief introduction to IPFS. +\end{itemize} + +\subsection{Ethereum} +\label{sec:background:ethereum} + +\begin{itemize} + \item Ethereum blockchain (say transactions have a cost fee). + \item Ethereum smart contracts. + + \textit{Old text: Ethereum smart contracts are employed to orchestrate the voting process, manage state transitions, and store critical data, such as the current state root and encryption public keys. These smart contracts provide a trustless environment, ensuring that all participants can be confident that the voting process rules are correctly enforced.} + + \item Ethereum data blobs. + + \textit{Old text: EIP-4844 is used for data availability, enabling the storage of state transition data in the form of Ethereum data blobs. This mechanism allows sequencers to collaborate on the construction and verification of the voting process state, ensuring efficient and decentralized data availability.} + +\end{itemize} + +\subsection{Zero-knowledge proofs} +\label{sec:background:zkp} + +\begin{itemize} + \item Introduce ZK-SNARKs. + \item Introduce arithmetic circuits (arithmetic circuit satisfiability). +\end{itemize}
@@ -0,0 +1,81 @@
+% !TeX root = ../build/main.tex + +\martai{All this section is the original old text.} + +The \textit{Vocdoni ballot protocol} is a simple and efficient mechanism for casting and tallying votes in any type of election or collective decision-making process. Each voting process consists of one or several fields and voters are required to provide a response for each of these fields in their ballot. + +The responses in the ballot are represented as a sequence of natural numbers, each corresponding to the voter’s choice for the respective field. Results are accumulated into a single array. Each position in the array corresponds to the sum of all votes cast for that field across all voters. + +The ballot protocol is defined by a set of configurable variables that dictate how votes must be cast. This way the protocol can accommodate a wide range of voting processes and behaviors. + +\begin{enumerate} + \item \maxcount: Defines the maximum number of fields in a ballot (max 64). + \item \maxvalue: The maximum allowable value for any field in a ballot (if greater than 0). + \item \minvalue: The minimum allowable value for any field in a ballot (default 0). + \item \uniquevalues: Specifies whether voters can select the same value multiple times within a ballot (default false). + \item \maxtotalcost: Limits the sum of all field values in a ballot (if greater than 0). + \item \mintotalcost: Specifies a minimum required total sum of field values in a ballot (default 0) + \item \costexponent: Defines the exponent used to calculate the "cost" of votes for each field (default 1 +\end{enumerate} + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.4, draft = false]{\figs/ballot-variables.png}} +\end{figure} + +\paragraph{Example 1: Rating candidates.} + +Consider a voting process where voters are asked to rate three candidates: Lennon, Hendrix, and Joplin. Voters rate each candidate from 0 to 5 stars, and each vote is represented as an array where each position corresponds to the candidate’s rating. The configuration of this voting would be the following: + +\begin{itemize} + \item \maxcount: 3 + \item \maxvalue: 5 + \item \uniquevalues: Yes +\end{itemize} + +Ballots: + +\begin{itemize} + \item Vote 1: \texttt{[3, 2, 5]} (3 stars for Lennon, 2 stars for Hendrix, 5 stars for Joplin) + \item Vote 2: \texttt{[4, 3, 2]} + \item Vote 3: \texttt{[2, 4, 5]} +\end{itemize} + +After accumulating the votes: + +\begin{itemize} + \item Results Array: \texttt{[3+4+2, 2+3+4, 5+2+5] = [9, 9, 12]}\\ + Lennon received 9 points, Hendrix received 9 points, and Joplin received 12 points. +\end{itemize} + +\paragraph{Example 2: Quadratic voting for resource allocation.} + +In a scenario where voters distribute a fixed number of credits across different options (e.g., selecting funding levels for NGOs), the ballot allows voters to assign multiple points, but the cost of casting multiple votes for a single option increases quadratically. + +Configuration: + +\begin{itemize} + \item \maxcount: 4 + \item \maxtotalcost: 12 (credits) + \item \costexponent: 2 (quadratic) +\end{itemize} + +Ballots: + +\begin{itemize} + \item Vote 1: \texttt{[2, 2, 2, 0]} + \item Vote 2: \texttt{[1, 1, 3, 1]} + \item Vote 3: \texttt{[0, 2, 1, 2]} +\end{itemize} + + +After accumulating the votes: + + +\begin{itemize} + \item Results Array: \texttt{[2+1+0, 2+1+2, 2+3+1, 0+1+2] = [3, 5, 6, 3]} \\ + Each position in the array represents the total sum of credits allocated to each NGO. +\end{itemize} + +\martai{Cost may be dependant on the voter's weight.}
@@ -0,0 +1,190 @@
+% !TeX root = ../build/main.tex + +In this section, we detail the cryptographic primitives used in Section~\ref{sec:vocdoni-protocol}. We briefly introduce Merkle trees, the commitment and encryption schemes, proof systems, elliptic curves and hash functions used. We also specify at each step the concrete parameters with which each of the primitives is instantiated.\\ + +\martai{This section is a mix of theoretical description and implementation details.} +\martai{Hmm not really, it's more details. Maybe it should go under the protocol section?} +\martai{Rethink the structure (e.g., hash functions should go before Merkle trees).} + +\paragraph{Notation.} Throughout the document, we use the following conventions. Given a set $S$, we denote sampling an element $x$ uniformly at random from $S$ by $x \sample S$. We denote all bitstrings of arbitrary length by $\{0,1\}^*$. +%Any group $\G$ used is of a large prime order, and we assume that the discrete logarithm problem is hard in $\G$. If two elements are denoted by the same letter in upper and lower case, e.g. $a, A$, this often means that $A$ is a public key corresponding to the secret key $a$. +%$\F_p$ denotes de finite field of order $p$, and $\F_p^* = \F_p/\{0\}$. + +\subsection{Merkle trees} +\label{sec:cryptographic-primitives:merkle-trees} + +\martai{I am not sure a Merkle trees section is needed, but I thought we could use it to specify the hash function used in the trees, the depth, and the -arity. We could also include some functions like \texttt{MT.Root()}, etc.} + +\subsection{Zero-knowledge proof systems} +\label{sec:cryptographic-primitives:zkp} + +\textit{Old text: zero-knowledge succinct non-interactive arguments of knowledge are a crucial component in ensuring the validity of the voting results. Voters generate zkSNARK proofs to prove that their encrypted votes comply with the rules and requirements of the voting process, without revealing any information about their choices. Sequencers also generate zkSNARK proofs to prove the correct aggregation of votes into the shared state that maintains the status of the voting process.} + +\subsection{Elliptic curves} +\label{sec:cryptographic-primitives:elliptic-curves} + +\martai{Curves BLS12-377, BW6-761 (Brezing–Weng pairing-friendly outer curve to BLS12-377), and BN256.} + +% https://eprint.iacr.org/2021/1359.pdf +% ElHouseni & Guillevic són els originals de la chain +% https://eprint.iacr.org/2020/351.pdf + +% BLS12-377 curve: a Barreto–Lynn–Scott curve over a 377-bit prime field +% BW6-761 curve: a Brezing–Weng curve of embedding degree 6 over a 761-bit prime field +% Abans crec que en comptes de BW es feia amb la CP, però que BW és més eficient + +Vocdoni uses the BLS12-377, xxx, and xxx elliptic curves. More precisely, let +\[\begin{array}{lll} + & q = ,\\ + \\ + & p = . +\end{array}\] +Note that both are prime numbers, with bit-lengths $xxx$ and $xxx$, respectively. The curve BLS12-377 is the curve over $\mathbb{F}_q$ defined by the equation +\[E: Y^2 = aX^3 + b.\] +We have that $E(\mathbb{F}_q)$ has different subgroups $\G_1, \G_2$ such that $\#\G_1 = \#\G_2 = p$. This curve is pairing-friendly (with embedding degree $k = 12$), so pairings are efficiently computable. More precisely, we make use of the bilinear group +\[\mathbb{B}=\left( p, \G_1, \G_2, \G_T, e: \G_1\times\G_2 \rightarrow \G_T \right).\] + +By instantiating the zk-SNARK with the bilinear group $\mathbb{B}$, we are able to prove statements about satisfiability of arithmetic circuits over $\mathbb{F}_p$, the so-called \emph{scalar field} of $E$. + +Furthermore, we are interested in proving certain operations with the zk-SNARK, like the correct verification of XXX. Note that XXX is an element of a certain elliptic curve $J$, but is represented as two coordinates in the base field $\F_s$ of $J$. Therefore, the verification can be best represented as arithmetic constraints modulo $s$. While it is possible to represent any NP statement using arithmetic modulo $p$ to plug it into the zk-SNARK, this incurs into a significant efficiency loss if not done carefully. The natural thing is to set $s=p$. Therefore, the signature scheme must be instantiated with an elliptic curve over $\mathbb{F}_p$. For this, let +\[d = -\frac{xxx}{xxx} \bmod{p}.\] +Vocdoni uses the XXX curve, defined by the equation +\[J : -X^2+Y^2 = 1 + dX^2Y^2,\] +over $\mathbb{F}_p$. In particular, it uses a subgroup $\mathbb{J}$ of order +\[\begin{array}{lll} + & t = ,\\ +\end{array}\] +which is a $xxx$-bit prime. + +The primes and groups defined here will be used through the rest of the document. + +\subsection{Hash functions} +\label{sec:cryptographic-primitives:hash} + +\subsection{Encryption schemes} +\label{sec:cryptographic-primitives:encryption} + +\textit{Old text: Threshold homomorphic encryption, specifically the ElGamal scheme, is used to allow the summation of encrypted votes without decrypting them. This enables the system to compute the final vote tally while maintaining the privacy of individual votes. By ensuring that no vote is exposed during the aggregation phase, this scheme preserves voter confidentiality and provides anti-coercion protection, as voters cannot prove their choice to a third party once an encrypted vote is added.}\\ + +ElGamal [CITE]. + +\medskip + +\begin{mdframed} + \begin{minipage}[t]{0.54\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\Enc}_{\pk}(\msg \in \{0,1\}^\star)$: \vspace{0.1cm} + \begin{enumerate} + \item Map $\msg$ to $\J$ via $M = mG$. (link G). + \item Select a random scalar $k \sample $. + \item Compute $C_1 = k \cdot G \in \J$. + \item Compute $C_2 = k \cdot \pk + M \in \J$. + \item Output $\enc = (C_1, C_2) \in \J^2$. + \end{enumerate} + \end{itemize} + \end{minipage} + \begin{minipage}[t]{0.44\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\Dec}_{\sk}(\enc \in \J)$: \vspace{0.1cm} + \begin{enumerate} + + %From a ciphertext (C,D) calculate C′=xC, and retrieve the point Pm with Pm=D−C′=(k(xP)+Pm)−(x(kP)). Then calculate the message m with f−1(Pm). + + \item Parse $\enc = (C_1, C_2) \in \J^2$. + \item Compute $K = \sk \cdot C_1 \in \J$. + \item Output $\msg = C_2 - K$. + \end{enumerate} + \end{itemize} + \end{minipage} +\end{mdframed} + +\martai{The group $\J$ is not the right group. This should be changed after writing the elliptic curves section. Actually, I am unsure we should specify where do all elements live.} + +\martai{It remains to explain how to recover $m$ from $M$. I propose to define a function $P_m$ that maps $m$ to $\J$, and then say that although it is generally not invertible, in this case the message space is small, and therefore, it can be done via brute-force search or using the baby-step giant-step algorithm [CITE].} + +Note that this scheme is additively homomorphic. That is, given two ciphertexts $(C_1, C_2)$ and $(C_1', C_2')$, their component-wise addition yields: $(C_1^{sum}, C_2^{sum}) = (C_1 + C_1', C_2, C_2)$. The aggregated ciphertext decrypts to the sum of the messages $M^{sum} = M_1 + M_2$. + +\martai{The $pk$ used to encrypt is generated by multiple parties as defined in Section~\ref{sec:cryptographic-primitives:dkg}.} + +\subsection{Commitment schemes} +\label{sec:cryptographic-primitives:commitments} + +%Pedersen commitment scheme~\cite{pedersen1991non}. + +\subsection{Digital signature schemes} +\label{sec:cryptographic-primitives:signatures} + +\subsection{Key generation schemes} +\label{sec:cryptographic-primitives:dkg} + +\textit{Old text: The DKG protocol is used to generate the encryption public key (EPK) in a decentralized manner. Sequencers collaboratively participate in the DKG process to create the EPK, ensuring that no single party has full control over the key. This approach guarantees that the encryption key remains secure and that decryption of results is only possible when a threshold number of sequencers publish their shares.}\\ + +We use the distributed key generation (DKG) protocol that allows a group of participants to jointly generate a pair of public/private keys for the ElGamal cryptosystem [CITE]. Each participant holds a share of the private key, and only a threshold number of participants can collaborate to decrypt messages. + +\martai{We use a variation of DKG because of the encryption of shares. Below I described the original functions but they should be changed!} +\martai{Mention that in the SC participants are listed, that is, they have an associated number $i$.} + +Let $t$ be the threshold parameter (minimum number of participants required to decrypt messages) and $n$ the total number of participants participating in the DKG protocol ($t \leq n$). Let $G$ be generator point of order $q$. (This will already be defined in the EC section). + +\begin{mdframed} +Each participant $P_i$ will use $\hlget{\GenerateShares}$ to generate their share. Then, they will make the set $\{C_i\}_{i=1}^{t-1}$ publicly available and send each $s_j$ privately to each participant $s_j$. Every participant $P_i$ can verify the share $s_{j,i}$ received from $P_j$ (from of the others) using the algorithm $\hlget{\VerifyShare}$.\\ + +\noindent +\begin{minipage}[t]{0.5\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\GenerateShares}(\text{participant $i$})$: \vspace{0.1cm} + \begin{enumerate} + \item Select random scalars $a_{i,0} \sample \Z_q$. + \item Define the polynomial $f_i(x) = \sum_{j = 0}^{t-1} a_{i,j} x^{j}$. + \item For every $j\in\{0,\dots,t-1\}$, compute + $$C_{i, j} = a_{i,j}\cdot G.$$ + \item For every $j\in\{1,\dots,n\}$, compute shares + $$s_{i, j} = f_i(j).$$ + \item Output $\{C_{i,j}\}_{i=0}^{t-1}$ and $\{s_{i,j}\}_{j=1}^{n}$. + \end{enumerate} + \end{itemize} + \martai{This is not true - according to the specs, shares are encrypted using a simplified version of the EC integrated encryption scheme (ECIES). Each participant generates a zkSNARK proof to prove the correctness of the encrypted shares and compliance of the DKG protocol. This allows the Ethereum SC to verify the validity without revealing the secrets.} + \martai{Change the name of algorithm to $\texttt{GenerateEncryptedShares}$.} +\end{minipage} +\begin{minipage}[t]{0.5\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\VerifyShare}(i, j, s_{i,j}, C_i)$: \vspace{0.1cm} + \begin{enumerate} + \item Compute $V = \sum_{i = 0}^{t-1} C_i$. + \item Verify that $V = s_{i,j} \cdot G$. + \martai{This is done by the smart contract - the shares are not in the clear but encrypted.} + \end{enumerate} + \end{itemize} + \martai{Describe slashing mechanism in SC section if one of the shares fails the verification?} +\end{minipage} +\end{mdframed} +%%%% +% +%%%% +\begin{mdframed} +Participant $P_j$ uses the algorithm $\hlget{\DeriveSecretShare}$ to compute their portion of the collective private key. The algorithm $\hlget{\DerivePublicKey}$ generates the public key from the committed data from the participants. \\ + +\noindent +\begin{minipage}[t]{0.5\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\DeriveSecretShare}(\text{participant $j$})$: \vspace{0.1cm} + \begin{enumerate} + \item Compute $s_j = \sum_{i = 1}^{n} s_{i, j} \mod q$. + \item Output $s_j$. + \end{enumerate} + \end{itemize} +\end{minipage} +% +\begin{minipage}[t]{0.5\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\DerivePublicKey}(\{C_{i,0}\}_{i=1}^n)$: \vspace{0.1cm} + \begin{enumerate} + \item Let $pk = \sum_{i=1}^n C_{i,0}$. + \item Output $pk$. + \end{enumerate} + \end{itemize} + Note that since $C_{i,0} = a_{i,0} \cdot G$, the public key is effectively $sG$ where $s = \sum_{i = 1}^n a_{i,0} \mod q$ is the collective private key (unknown to any single participant). + \martai{As before, this should be changed to the encrypted version. It should be explained how the public key is generated from the encrypted shares.} +\end{minipage} +% +\end{mdframed}
@@ -0,0 +1,70 @@
+% !TeX root = ../build/main.tex + +\martai{This subsection contains the abstract and introduction from the specs. I believe it should be adjusted to the new paper style.} + +\paragraph{Abstract.} Vocdoni Z is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and anonymous digital voting. Leveraging recent advancements in zero-knowledge proofs and blockchain technology, Vocdoni Z transitions to a \textbf{specialized zkRollup} system that inherits network security from settlement layers like Ethereum Mainnet. The system \textbf{relies exclusively on cryptographic proofs} to ensure integrity and security, eliminating the need for centralized authorities. By integrating \textbf{zkSNARKs and threshold homomorphic encryption} (ElGamal), Vocdoni Z enables end-to-end verifiability, privacy, and trustlessness in the voting process. The protocol employs a distributed key generation among sequencers, coordinated via Ethereum smart contracts, and utilizes Ethereum data blobs (EIP-4844) for data availability. With a focus on \textbf{accessibility, scalability, receipt-freeness, and automation}, Vocdoni Z aims to facilitate high-frequency, low-cost voting, fostering mass adoption of e-voting and simplifying civil participation. Finally, the introduction of the \textbf{Vocdoni Token} (VOC) aligns incentives among participants, ensuring the system's sustainability and enabling decentralized governance. + +Moreover, the design of Vocdoni Z is grounded in practicality; all components have been implemented using current technologies and have undergone proof-of-concept testing. This ensures that the proposed architecture is not merely theoretical but a viable solution ready for short-term deployment. + +\paragraph{Vision and background.} + +Voĉdoni, meaning “to give voice” in Esperanto, embodies our mission to empower civil society from the grassroots level. We aim to build essential primitives and tools that enable any collective—from small groups to millions of citizens—to be heard, regardless of their circumstances or available resources. + +Our philosophy envisions voting beyond traditional nation-state elections; we see it as a collective signaling mechanism with cryptographic guarantees of integrity and outcome. + +To address the challenge, we developed a end-to-end verifiable and anonymous voting system designed to work on any device, including smartphones. We also successfuly deployed an infrastructure that maximizes resilience, neutrality, and transparency. + +In 2018, when Vocdoni began, zkSNARKs was just an emerging technology. We chose to base our solution on a customized Byzantine Fault Tolerant L1 blockchain called Vochain. This allowed us to achieve scalability (approximately 700 transactions per second), to leverage advanced cryptographic tools that are prohibitively expensive on EVM-based blockchains, and enable users to send voting transactions without costs. + +This experience has provided us with invaluable insights that have enabled us to overcome technical and operational challenges. Although this solution has effectively met user requirements and demonstrated its viability, further development is essential for its widespread adoption as a \textbf{universal voting protocol}. + +Vocdoni Z represents the evolution of the Vocdoni voting protocol. It integrates smart contracts for orchestration, a zkSNARK-based state machine for verifying and accumulating votes, and a decentralized data availability layer to ensure censorship resistance. + +\paragraph{Design principles.} + +To build the Vocdoni Z Stack, we adhere to the following design principles: + +\begin{enumerate} + \item \textbf{Cryptography as the source of truth}: We rely exclusively on cryptographic proofs to ensure the integrity and security of the voting process. By trusting only in cryptography, we eliminate the need for centralized authorities, making the system inherently secure and transparent. + + \item \textbf{Trustlessness}: Our system operates without requiring trust in any single party. Through cryptographic protocols and decentralized infrastructure, we ensure system integrity and prevent compromise from any malicious actor. + + \item \textbf{End-to-end verifiability}: Every voter can verify their ballot from casting to result computation (individual verifiability). Additionally, any third party can audit the election data to confirm results (universal verifiability) and verify that each vote comes from a uniquely registered voter (eligibility verifiability). Transparent cryptographic mechanisms make this possible. + + \item \textbf{Composability}: The system is modular, consisting of interchangeable components that can be rearranged or integrated with external systems via adaptable interfaces. This allows for redundancy, flexibility, and seamless integration with third-party applications, exemplified by our voting-as-a-service APIs. + + \item \textbf{Accessibility}: Vocdoni’s voting platform (App) is open source, universally available and user-friendly. The interface is intuitive for all users, including those less familiar with technology, and accommodates voters that use assistive technologies like screen readers. + + \item \textbf{Open source}: By releasing our code openly, we invite anyone to audit and contribute, enhancing security and fostering community engagement. Transparency prevents security through obscurity and accelerates innovation. + + \item \textbf{Resilience}: We design for robustness against hardware failures, network outages, and censorship. Infrastructure decentralization and distributed ownership enhance system availability and resistance to attacks. + + \item \textbf{Scalability}: Our solution processes votes at high throughput, exceeding current requirements to accommodate future growth. The decentralized infrastructure scales organically as usage increases, ensuring consistent performance. + + \item \textbf{Receipt-freeness}: To mitigate risks of collusion, coercion, and vote-buying, the system enables voters to verify their votes without being able to prove to others how they voted, thus reducing incentives for coercion and bribery. Additionally, voters are allowed to overwrite their votes while maintaining secrecy. + + \item \textbf{Automation}: We minimize human intervention through smart contracts and cryptographic protocols, reducing costs and human error. Automation ensures consistent operation and frees resources for voter support and auditing. +\end{enumerate} + +\paragraph{Components overview} + +Below, we detail the components of the architecture that collectively support the operation and management of the voting system. + + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/architecture.png}} + \caption{Caption.} + \label{fig:circuit-inputs} +\end{figure} + +\begin{enumerate} + \item \textbf{Ethereum}. An Ethereum compatible network is used as the source of truth for the voting system. By leveraging an EVM blockchain, the process management ensures that all transitions are immutable and verifiable by all participants. To this end, we implement several smart contracts. + \begin{itemize} + \item \textbf{Process Management}: Responsible for the lifecycle management of voting processes. It includes the initiation, monitoring, execution, and closure of voting events. + \item \textbf{Results Verification}: For each voting process, this smart contract maintains the integrity of the cast votes and process lifecycle. It verifies that each state transition committed by a ZK sequencer adheres to the predefined rules. + \item \textbf{Sequencer Registry}: This smart contract keeps track of the existing available sequencers, stores the collateral to ensure good behavior, and it's used to coordinate the distributed key generation when a new Process is created. + \end{itemize} + \item \textbf{Sequencer}. The Sequencer is a specialized component designed to handle the voting process using zero-knowledge proof mechanisms. It ensures that all transactions related to this process are validated and sequenced. The Sequencers periodically commit the state of the voting process to Ethereum. + \item \textbf{Frontend User Interface}. The user interface serves as the primary interaction layer for voters and organizers. It provides tools and functionalities needed by organizers to set up, manage, and oversee elections. This interface simplifies the complexities involved in managing a decentralized vote. + \item \textbf{Data availability}. For each voting process, the system needs to keep track of the current State Merkle Tree, which contains all information of such processes. A public data availability layer, ensures that all state transitions are available and verifiable and allows the participation of multiple sequencers within the same voting process. +\end{enumerate}
@@ -0,0 +1,30 @@
+% !TeX root = ../build/main.tex + +\subsection{Contributions} +\label{sec:introduction:contributions} + +\begin{itemize} + \item The Vocdoni voting protocol. + \item The Vocdoni ballot protocol. +\end{itemize} + +\subsection{Related work} +\label{sec:introduction:sota} + +\begin{itemize} + \item State of the art of e-voting: \url{https://azkr.org/blog/evoting-review/}. +\end{itemize} + +\subsection{Paper organization} +\label{sec:introduction:organization} + +\begin{itemize} + \item Section~\ref{sec:background}: background. + \item Section~\ref{sec:protocol-intuition}: high overview of the election process. We omit technical details. + \item Section~\ref{sec:cryptographic-primitives}: cryptographic primitives used in the voting process. A description of the primitives but also the details of their instantiation, that is, the specific protocols being used. + \item Section~\ref{sec:vocdoni-protocol}: description of the voting process. + \item Section~\ref{sec:ballot-protocol}: a proposed protocol for ballots. The rules of this protocol are implemented in the process management smart contracts. + \item Section~\ref{sec:token}: the Vocdoni token. + \item Section~\ref{sec:analysis}: analysis of the proposed protocols. It includes a security discussion of the properties of the protocol, implementation details, and a performance evaluation. + \item Section~\ref{sec:conclusions}: we finish with some last remarks. +\end{itemize}
@@ -0,0 +1,39 @@
+% !TeX root = ../build/main.tex + +All the voting process is governed by the rules encoded in three smart contracts: the \textit{process management}, the \textit{sequencer registry}, and the \textit{results verification} smart contract. All these three contracts are deployed on the Ethereum blockchain, and ensure that the execution of all steps is transparent and unalterable. The protocol consists of 5 phases, as illustrated in Figure~\ref{fig:protocol-intuition}, and described below.\\ + +\begin{figure}[h] + \centerline{\includegraphics[width=300pt,draft=false]{\figs/protocol-intuition-flow}} + \caption{Overview of the protocol flow.} + \label{fig:protocol-intuition} +\end{figure} + +\martai{TODO: rename the phases as they will appear in Section~\ref{sec:vocdoni-protocol}.} + +\paragraph{$\boxed{1}$ Voting setup.} + +In the first phase, the organizing entity gathers all census data and generates a cryptographic commitment to this data. %using a Merkle tree (MT) root. +Additionally, the organizer defines the voting parameters, including the number of voting options and the vote-counting mechanism (e.g., weighted voting, quadratic voting, etc.). Once these details are set, the organizer submits a transaction to the process management smart contract on the Ethereum blockchain. This transaction publicly records the voting parameters and census commitment, ensuring transparency and preventing any subsequent alterations to the voting setup. + +\paragraph{$\boxed{2}$ Encryption key generation.} + +A designated group of participants, referred to as \textit{sequencers}, collaboratively generate a shared encryption public key, which voters will use to encrypt their votes. This key is established through a distributed key generation (DKG) protocol, ensuring that no single party can control or reconstruct the corresponding private key independently. +Sequencers have a dual role in the protocol. In addition to generating the encryption key, they are also responsible for collecting votes from voters during the election. Consequently, their public key and the necessary information to contact them off-chain must be registered in the sequencer registry smart contract. Once the encryption public key is securely computed and published in the sequencer registry smart contract, the voting phase can start. + +\paragraph{$\boxed{3}$ Voting.} + +Voters select their preferred option according to the rules established by the organizer and captured in the process management smart contract. Instead of submitting their votes directly on-chain, they send them off-chain to a sequencer of their choice for processing. To ensure privacy, votes are encrypted using the available encryption public key. Alongside the encrypted vote, each voter must also provide the following data: a proof of valid voting, demonstrating that the vote complies with the election rules; a proof of eligibility, verifying that they are registered in the census; and a proof of identity ownership, in the form of a digital signature, confirming that they are the legitimate voter and are not impersonating someone else. +\martai{In the above paragraph, we could include a short description about double-voting/overwriting.} + +\paragraph{$\boxed{4}$ Votes collection.} + +During this phase, sequencers collect encrypted votes from multiple voters along with their corresponding proofs, and verify the validity of these submissions. That is, sequencers +verify the signatures, to ensure the votes were cast by legitimate voters, they verify the proof of compliance, confirming that each vote adheres to the polling rules, and the census membership proofs against the commitment to the census data that was originally registered in the process management smart contract. Once the sequencers have processed and verified all votes, they must prove that these verifications were performed correctly. Instead of submitting individual verifications for each vote, they generate a single zero-knowledge (ZK) proof that attests to the correctness of all verifications. +%they compress multiple individual verification into one. +Additionally, the sequencers reencrypt the votes and generate a proof of the correct reencryption computation. While this process does not alter the final tally, it prevents voters from decrypting their original vote. This step mitigates vote selling or coercion, as voters are no longer able to prove their choice to third parties. Finally, the sequencers submit the reencrypted votes along with their verification and reencryption proofs to the process management smart contract. The smart contract verifies all the proofs provided by the sequencers to check that they complied with the protocol. + +\paragraph{$\boxed{5}$ Results verification.} + +\martai{I did not look into the results decryption/verification part yet. A short description should be given here.} + +Old text: At the conclusion of the voting period, the smart contract ceases to accept new state updates, effectively finalizing the process. The final State is then available on-chain for verification, providing an immutable record of the voting outcome.
@@ -0,0 +1,192 @@
+% !TeX root = ../build/main.tex + +\martai{I suggest to readjust this section to the new paper style.} + +Vocdoni Z introduces the Vocdoni token (VOC) as a key element of its decentralized voting ecosystem, playing a crucial role in the protocol's sustainability. +The token serves multiple utility functions that align the incentives of all participants (voting organizers, sequencers, and voters) ensuring the integrity, efficiency, and security of the voting system. + +\subsection{Roles of the VOC} + +\begin{enumerate} + \item \textbf{Collateral for sequencers}: Sequencers are required to stake VOC tokens as a collateral to participate in the protocol. This serves as a safeguard to ensure responsible participation. If a sequencer behaves improperly (whether due to malicious intent or unintentional errors) it can face penalties, including the loss of part of its staked tokens. + \item \textbf{Incentive mechanism}: Sequencers earn rewards in VOC tokens based on their contribution to processing valid votes and maintaining the network. Rewards are proportional to the number of valid votes successfully added to the shared state. + \item \textbf{Payment for voting processes}: Voting processes organizers use VOC tokens to cover the costs of creating and managing voting processes. The costs depend on factors like the size of the voting registry, the voting period's duration, and the desired level of security (based on the number of participating sequencers). + \item \textbf{Governance}: The VOC token facilitates decentralized governance by giving the token holders the right to participate in the project governance. Token holders can influence on important matters such as protocol upgrades, ecosystem development, and other initiatives aimed to enhance various aspects of Vocdoni Z. This ensures that the project evolves in a transparent, community-driven manner. +\end{enumerate} + +\subsection{Economics for organizers} + +Organizers of voting processes pay fees in VOC tokens to create and manage their voting events. These fees cover operational costs and incentivize the sequencers. + +The costs of voting processes vary based on the following factors: + +\begin{itemize} + \item \textbf{Maximum number of votes}: Larger voter registries require more resources for processing. + \item \textbf{Voting duration}: Longer voting periods demand extended resource commitments from sequencers. + \item \textbf{Security level}: Organizers can adjust the number of participating sequencers to balance between cost and security needs. +\end{itemize} + +Fees must be paid upfront but can be partially reimbursed. The formula for calculating the reimbursement is: + +$$ \reimbursement = \totalCost - \totalReward - \baseCost $$ + +Given that there is a list of eligible voters for each voting process, organizers should reserve space equal to the maximum number of voters, anticipating that all eligible voters may participate. However, since this is unlikely, a portion of the reward pool may be reimbursed. + +The components of this formula are defined in the following sections. + +\subsection{Voting process cost model} + +The process cost model defines how the cost for a given process is calculated. +Considering sequencer-specific capacities, process duration, number of voters and security costs, we define following components formula: + +$$ \totalCost = \baseCost + \capacityCost + \durationCost + \securityCost $$ + +\subsubsection{Components definition} + +\begin{itemize} + \item $\baseCost$: The base cost is a fixed fee charged by the sequencer to set up a voting process based on a fixed value plus the number of and a fixed factor. It is independent of the process duration, or the security level. This part cannot be reimbursed thus is a portion of the that will alwways be rewarded to the sequencers. + $$ \baseCost = \fixedCost + \maxVotes \cdot p $$ + Where: + \begin{itemize} + \item $\fixedCost$ is a fixed base fee defined into the protocol. + \item $\maxVotes$ is the maximum number of votes of a given voting process. + \item $p$ is a small lineal factor defined into the protocol. + \end{itemize} + + \item \capacityCost: It defines the cost given the current occupancy of the sequencer network. This component models the cost of reserving space for voting processes, relative to the number of sequencers available, the number of running voting processes and the maximum numbers of voters. The cost increases non-linearly as the number available sequencers approaches to the total number of sequencers and the number of running voting processes grows, so when there are fewer sequencers available and big number of voting processes running, the capacity becomes more valuable. + $$ + k_1 \cdot \left( \frac{\totalVotingProcesses}{\totalSequencers - \usedSequencers + \epsilon} \cdot \maxVotes \right)^a + $$ + \begin{itemize} + \item $k_1$: A scaling factor controlling the impact of sequencers usage. + \item $\totalVotingProcesses$: The total number of running voting processes. + \item $\totalSequencers$: The total number of registered sequencers. + \item $\usedSequencers$: The number of sequencers that are already handling other voting processes. + \item $a$: An exponent that controls how sharply the cost increases as the used capacity approaches the total available capacity. In other words, it controls the non-linearity of the cost increase. + \item $\epsilon$: Is a very small number that avoids zero division. + \end{itemize} + + \item $\durationCost$: This component models the cost of running the process for a specific duration, where longer processess incur more cost. The scaling is non-linear, meaning that shorter processes are more cost-efficient, while longer processes are increasingly expensive. + + It is expected to have a minimum and maximum duration thresholds (e.g 1 hour to 1 year). + + $$ k_2 \cdot \processDuration^b $$ + + \begin{itemize} + \item $k_2$: A scaling factor for the process duration. + \item $\processDuration$: The duration of the process in hours. + \item $b$: An exponent that controls the non-linear scaling of the process duration. + \end{itemize} + + \item $\securityCost$: The security cost models the use of multiple sequencers to ensure a secure process. The cost scales exponentially based on the number of sequencers used, but with diminishing returns as the number of sequencers approaches the total available sequencers: + + $$ k_3 \cdot e^{c \cdot \left( \frac{\numSequencers}{\totalSequencers} \right)^d} $$ + + \begin{itemize} + \item $k_3$: A scaling factor controlling the overall weight of security cost. + \item $c$: Controls the steepness of the exponential scaling for security costs. + \item $\numSequencers$: The number of sequencers used in this process. + \item $\totalSequencers$: The total number of available sequencers in the network. + \item $d$: An exponent controlling how fast the security cost increases as the number of sequencers approaches the total available sequencers. + \end{itemize} +\end{itemize} + +\subsubsection{Constraints} + +There is the need to enforce some constrains in the formula in order to avoid impracticable scenarios. + +\begin{itemize} + \item If $\processDuration > \maxDuration$ then: $\totalCost = \infty$. + \item If $\numSequencers > \totalSequencers$ then: $\totalCost = \infty$. +\end{itemize} + +\subsection{Economics for sequencers} + +To become a sequencer and earn rewards, participants must stake VOC tokens as collateral. This collateral is locked during the sequencer registry in the Sequencer Registry smart contract and can be withdrawn upon the sequencer commitments are fulfilled. + +Sequencers \textbf{receive rewards} based on: + +\begin{itemize} + \item The number of \textbf{votes} they include in the shared state. + \item The number of \textbf{vote rewrites} they include in the shared state. + \begin{itemize} + \item A vote rewrite can be either a vote overwrite (a voter casting another vote that overwrites the previous one) or a vote re-encryption (made by the sequencer). Rewriting votes enables more flexibility for the voter and is a key mechanism for the receipt-freeness. + \item It is expected for the sequencers to maximize the number of vote rewrites because there is no way to distinguish between a vote overwrite and a vote re-encryption. This is considered a positive behavior because it contributes to the receipt-freeness mechanism of the protocol. + \item A vote and a vote rewrite are distinguishable because the former include a nullifier that has not ever been included in a specific process. + \item Given that each sequencer will submit a ZK proof validating the state transition into the settlement layer smart contract it is straight forward to count the number of votes and the number of vote rewrites processed by each sequencer. + \item Sequencers can allow vote rewrites up to $T$ times the number of new votes for any state transition. $T$ will be defined as a constant in the protocol. + \end{itemize} + \item The number of \textbf{non-processed votes} in relation to the maximum number of voters. +\end{itemize} + +The total reward obtained can be expressed as: + +$$ \sequencerReward_i = R \cdot \left( \frac{\votes_i}{\maxVotes} \right) + W \cdot \left( \frac{\voteRewrites_i}{\totalRewrites} \right) $$ + +And subject to the constraints: + +$$ \frac{\voteRewrites_i}{\votes_i} \leq T$$ + +$$ \totalReward = R + W $$ + +$$ R > W $$ + +\begin{itemize} + \item $R > W$ since the sequencers must prioritize processing votes and not be incetivized to just rewrite existing votes. +\end{itemize} + +Where: + +\begin{itemize} + \item $R$: A part of the reward pool allocated for a specific voting process. + \item $\votes_i$: The number of votes processed by the sequencer for a specific voting process. + \item $\maxVotes$: The maximum number of voters participating in a voting process. + \item $W$: A part of the reward pool allocated for a specific voting process. + \item $\voteRewrites_i$: The number of vote rewrites processed by the sequencer for a specific voting process. + \item $\totalRewrites$: The total number of vote rewrites for a specific process. +\end{itemize} + +\subsubsection{Penalties} + +\begin{itemize} + \item Non-participation: Sequencers who fail to meet their obligation, not providing key shares during the tally phase, can have their collateral slashed. + Penalites for a sequencer can be expressed as: + $$ \slashedAmount_i = s \cdot \stakedCollateral_i $$ + Where: + \begin{itemize} + \item $\slashedAmount_i$: The total slashed amount for a given sequencer. + \item $s$: The slashing coefficient $0 \leq s \leq 1$. + \item $\stakedCollateral_i$: The amount of VOC tokens staked by a given sequencer. + \end{itemize} +\end{itemize} + +\subsection{Summary} + +The total cost formula combines four main components: + +\begin{enumerate} + \item A base cost for setting up the process. + \item A capacity cost based on the number of voters, the total running processes and available sequencer capacity. + \item A duration cost based on how long the process lasts. + \item A security cost based on the number of sequencers used, with diminishing returns for using more than a certain number. +\end{enumerate} + +The proposed formula ensures that: + +\begin{itemize} + \item Small processes are cost-efficient. + \item Larger processes or processes using a high proportion of available sequencer capacity incur higher costs. + \item The cost of security increases rapidly if more sequencers are used, but adding sequencers beyond a certain point leads to diminishing returns. + \item Impractical scenarios cannot be reached. +\end{itemize} + +\subsubsection{Notes on optimization} + +In the model presented we can clearly see that there are conflicting objectives from the two main actors: + +\begin{itemize} + \item The organizer (the ``buyer'' of services) wants to minimize the cost of running the process. + \item The sequencers (the ``sellers'' of capacity) want to maximize their rewards. A sequencer can decide whether to participate based on expected profits. +\end{itemize} + +These are naturally conflicting objectives that can be modeled as a strategic game. However, modeling this equilibrium for the protocol it is not in the scope on this document and will be presented in a separate piece.
@@ -0,0 +1,521 @@
+% !TeX root = ../build/main.tex + +\martai{Is the process called voting? Election, poll?} + +\subsection{Parties involved} +\label{sec:vocdoni-protocol:parties} + +A voting process involves three types of participants: the organizer, the sequencer, and the voters. + +\paragraph{Organizer.} The organizer is the entity reposnible for defining and setting up the voting process. Its key responsibilities include defining the voting parameters and gathering the census data. The organizer ensures that the election is structured correctly but does not participate in vote collection or tallying. + +\paragraph{Sequencer.} Sequencers are a set of decentralized parties that facilitate the voting process. On the one hand, they collaboratively generate a public encryption key that voters use to encrypt their votes. Then, during the voting phase, they receive and verify encrypted votes from voters and reencrypt votes to prevent coercion. + +\paragraph{Voter.} Voters are the participants that belong the census that cast their votes in the election. + +\subsection{Components} +\label{sec:vocdoni-protocol:components} + +\subsubsection{Merkle trees} + +\textit{Old text: Merkle trees are employed to create a cryptographic representation of both the voter registry (census) and the voting process state: + \begin{itemize} + \item \textbf{Census}: Each voter is assigned a Merkle proof, which they use to prove their eligibility to vote. This mechanism ensures efficient and secure verification of voter eligibility. + \item \textbf{State}: The voting process state is represented as a Merkle tree, with new votes being added to the tree. The root of this Merkle tree is stored on Ethereum, allowing multiple sequencers to participate in the voting phase and ensuring consistency. +\end{itemize}} + +\paragraph{Census Merkle tree.} Explain what it is. \\ + +\martai{It could actually be another type of data structure. We only need to be able to get a commitment and a membership proof that can be proven in-circuit. Mention it in some way.} + +\paragraph{State Merkle tree.} Explain what it is and the structure. Below, the original text:\\ + +The State tree contains some special addresses (indices) for storing some required data regarding the voting process: + +\begin{itemize} + \item Address \texttt{0x0}: Process identifier: stores a unique identifier for the voting process. + \item Address \texttt{0x1}: Census Root and Type: contains the information necessary to validate vote proofs. + \item Address \texttt{0x2}: Ballot Mode: encodes rules for validating votes, such as the maximum number of selectable options. + \item Address \texttt{0x3}: Threshold Encryption key: the public key used to encrypt the votes. + \item Address \texttt{0x4}: Added Results Accumulator: stores the aggregated encrypted voting results that need to be added. + \item Address \texttt{0x5}: Subtract Results Accumulator: stores the aggregated encrypted voting results that need to be subtracted. + \item Any address: vote addresses: are stored within the State tree pointing to a voter's identity commitment. Each commitment is a 32-byte hash derived from the voter's unique information and a secret. + \item Any address: vote nullifiers: are stored within the State tree to prevent double voting and to allow vote overwrite. Each nullifier is a 32-byte hash derived from the voter's commitment and a secret. +\end{itemize} + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/mt-state}} + \caption{Structure of the state Merkle tree (FIGURE SHOULD BE POLISHED).} + \label{fig:mt-state} +\end{figure} + +\textbf{The Initial State}: The voting process begins with an initial state where the Merkle Tree Root is established and published on the Process Management smart contract. Predefined parameters are included, but the results are initialized to zero, and no nullifiers are present. The Process Organizer transaction, contains the initial root and the necessary Merkle proofs. These proofs verify that the initial parameters are correct according to the voting process information and that no additional information is stored. Since the `ProcessId` of the initial state is a unique identifier, there won't be duplicate roots for different processes. + + +\subsubsection{Smart contracts} + +\paragraph{Process management.} This smart contract is responsible for the life-cycle management of voting processes. It includes the initiation, monitoring, execution, and closure of voting events. + +\paragraph{Sequencer registry.} For each voting process, this smart contract maintains the integrity of the cast votes and process life cycle. It verifies that each state transition committed by a sequencer adheres to the predefined rules. + +\paragraph{Results verification.} This smart contract keeps track of the existing available sequencers, stores the collateral of the sequencers to ensure (that incentivizes) good behaviour, and is used to coordinate the distributed key generation when a new voting process is created.\\ + +\martai{This is wrong. Explanation of SR and RV smart contracts are mixed, I don't know what I was thinking when I wrote it. We should also include a sentence about the management of sequencers.} + + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-inputs}} + \caption{Caption.} + \label{fig:circuit-inputs} +\end{figure} + + +\subsubsection{Votes [I don't think this is the right place]} + +In the Vocdoni Z system, a vote comprises several components that work together to ensure secure, private, and verifiable voting. These components are: + +\begin{enumerate} + \item Process Identifier + \item Census Proof + \item Identity Commitment + \item Nullifier + \item Encrypted Ballot and Zero-Knowledge Proof (ZKP) + \item Signature +\end{enumerate} + +Below, we detail each component and its role in the voting process. + +\begin{enumerate} + \item \textbf{Process Identifier} \\ + + The \textbf{Process Identifier} (\texttt{ProcessId}) is a unique 32-byte number that uniquely identifies a specific voting process within the Vocdoni Z ecosystem. It encapsulates essential information, including the rules and constraints for ballots and the unique identifier of the Vocdoni Z blockchain instance.\\ + + \item \textbf{Census Proof} \\ + + The \textbf{Census Proof} serves as the voter's identity verification mechanism, ensuring that only eligible voters can participate. Depending on the process configuration, the voter provides: + \begin{itemize} + \item \textbf{Merkle Tree-Based Proof}: A Merkle proof showing inclusion in the census. + \item \textbf{Credential Service Provider (CSP)}: A credential issued by a trusted third party. \\ + \end{itemize} + + \item \textbf{Identity Commitment}\\ + + The \textbf{Commitment} $C$ is used to prevent a voter from registering multiple nullifiers and to avoid collisions if different voters choose the same secret. + + $$ C = \text{Hash} (\text{Address} || ProcessId || s). $$ + + \begin{itemize} + \item \textbf{Stored in State Merkle Tree (SMT)}: Indexed by the voter's address. + \item \textbf{Prevents Multiple Registrations}: Each address can have only one commitment, ensuring a voter cannot register multiple secrets. + \item \textbf{Collision Resistance}: Including the address in $C$ ensures that commitments are unique even if voters choose the same secret $s$. + \end{itemize} + + The secret $s$ can be implemented from different ways or a combination of them, such as: + + \begin{itemize} + \item A secure enough Password introduced by the user. + \item A signature of a specific text. + \item A random input that the user must store to allow potential vote overwrite.\\ + \end{itemize} + + \item \textbf{Nullifier} \\ + + The \textbf{Nullifier} $N$ is a 32-byte hash used to: + + \begin{itemize} + \item \textbf{Prevent Double Voting}: Ensures each voter can cast only one vote or overwrite their previous vote. + \item \textbf{Allow Vote Overwriting}: Voters can submit a new vote with the same nullifier to replace their previous vote. + \item \textbf{Provide Anonymity}: Cannot be linked back to the voter's identity without knowledge of the secret $s$. + \end{itemize} + + $$ N = \text{Hash}(\text{C} || s) $$ + + \item \textbf{Encrypted Ballot and Zero-Knowledge Proof (ZKP)} \\ + + The ballot contains the voter's selections encoded according to the ballot protocol rules. To ensure privacy, the ballot is encrypted using the ElGamal cryptosystem over elliptic curves, which allows homomorphic combination of encrypted votes. + + \textbf{Encryption process}: + + \begin{itemize} + \item The voter's choice $m$ is encoded as a point on the elliptic curve. + \item The voter selects a random scalar $k \in [1, n-1]$, where is the order of the elliptic curve group. + \item Compute the ciphertext components: + \begin{itemize} + \item $C_1 = k \cdot G$ + \item $C_2 = M + k \cdot H$ + \end{itemize} + \item The ciphertext is the pair $(C_1, C_2)$. + \end{itemize} + + + \textbf{Zero-Knowledge Proof (ZKP)}: + + The voter generates a ZKP to prove the correctness of the ballot and encryption process: + + \begin{enumerate} + \item \textbf{Correctness of Encryption}: Ensures the ciphertext $(C_1, C_2)$ is correctly computed from the plaintext message $M$ and random scalar $k$. + \item \textbf{Compliance with Ballot Protocol Rules}: The plaintext vote adheres to the ballot protocol constraints, such as valid choices and allowed number of selections. + \item \textbf{Correct Computation of Commitment and Nullifier}: + \begin{itemize} + \item \textbf{Commitment}: $C = \text{Hash} (\text{Address} || ProcessId || s).$ + \item \textbf{Nullifier}: $N = \text{Hash}(\text{C} || s)$. + \item The voter knows the secret linking the commitment and nullifier. + \end{itemize} + \end{enumerate} + + \textbf{Inputs to the ZKP Circuit}: + + \begin{itemize} + \item \textbf{Public Inputs}: + \begin{itemize} + \item Encrypted Ballot $(C_1, C_2)$. + \item Ballot Protocol Configuration. + \item Encryption Parameters. + \item Voter's Weight + \item Commitment $C$. + \item Nullifier $N$. + \end{itemize} + \item \textbf{Private Inputs}: + \begin{itemize} + \item Plaintext Vote $m$. + \item Secret $s$. + \item Random Scalar $k$. + \item Voter's Address (used internally in the computation of $C$). + \end{itemize} + \end{itemize} + + \begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.3, draft = false]{\figs/vote-circuit-inputs.png}} + \end{figure} + + \item \textbf{Signature}\\ + + The \textbf{Signature} authenticates the vote and ensures that it was cast by a legitimate voter. The voter signs necessary components using their private key, depending on the census configuration (e.g., ECDSA, EdDSA, RSA). +\end{enumerate} + + +\subsection{Circuits} +\label{sec:vocdoni-protocol:circuits} + +\martai{The idea of this section is to describe de circuits. Then, in Section~\ref{sec:analysis:implementation} we give the details such as of the number of constants, framework used, etc. I haven't done this split yet.} + +\textit{Old text: By structuring the process this way, we ensure that voting can be performed from any device-including smartphones and web browsers-while keeping the sequencer's computational requirements within the capabilities of accessible, CPU-based machines with 64 GiB of memory.} + +\martai{I don't follow the above paragraph.} + + +\martai{NOTATION (1) What I name \texttt{config}, is called \texttt{Ballot Mode}, and (2) \texttt{MT root} is \texttt{census root}.} + +\martai{It's convenient to name the proof associated to each circuit: a proof for this circuit is called [...] .} + +\subsubsection{Voter circuit} + +Figure~\ref{fig:circuit-voter}. + +\paragraph{Description.} Generated by the user when casting a vote, this circuit proves that the encrypted ballot is valid (i.e. follows the protocol rules) and that the nullifier and commitment are correctly generated. + +\begin{itemize} + \item Constraints: Approximately 53.000 + \item Curve: BN254 + \item Framework: Circom/SnarkJS + \item Actor: User +\end{itemize} + +\paragraph{Assertions.} + +\begin{itemize} + \item \emph{Rules compliance}: The ballots meets the ballot mode provided following the protocol rules. + \item \emph{Vote encryption}: The ballots encryption is correct. + \item \emph{Vote commitment + nullification}: The nullifier and commitments are correctly computed. +\end{itemize} + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/voter-circuit}} + \caption{Voter circuit. All public values are framed in green.} + \label{fig:circuit-voter} +\end{figure} + +\subsubsection{Authentication circuit} + +Figure~\ref{fig:circuit-authentication}. + +\paragraph{Description.} Generated by the sequencer, this circuit transforms the vote proof to the BLS12-377 curve for native recursion and validates the user's eligibility in the census, as well as their signature. + +\begin{itemize} + \item Constraints: Approximately 3.1 million + \item Curve: BLS12-377 + \item Framework: Gnark + \item Actor: Sequencer +\end{itemize} + +\paragraph{Assertions.} + +\begin{itemize} + \item \emph{Voter's proof verification}: The vote zkProof is valid for the inputs provided. + \item \emph{Authentication + non-malleability}: The signature of the inputs provided is valid for the public key of the voter. + \item \emph{Census membership}: The address derived from the user public key is part of the census, and verifies the census proof with the user weight provided. +\end{itemize} + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-authentication}} + \caption{Authentication circuit. All public values are framed in green.} + \label{fig:circuit-authentication} +\end{figure} + +\subsubsection{Aggregation circuit} + +Figure~\ref{fig:circuit-aggregate}. + +\paragraph{Description.} This circuit accumulates multiple authenticated votes into a single proof. It also verifies that all accumulated votes belong to the same voting process. + +\begin{itemize} + \item Constraints: 40.000 $\times$ (number of votes) + \item Curve: BW6-761 + \item Framework: Gnark + \item Actor: Sequencer +\end{itemize} + +\paragraph{Assertions.} + +\begin{itemize} + \item \emph{Votes aggregation}: The accumulated zkProofs are valid. + \item \emph{Shared public inputs}: The ProcessId, CensusRoot, BallotMode and EPK is the same for all of them. +\end{itemize} + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-aggregate}} + \caption{Aggregation circuit. All public values are framed in green.} + \label{fig:circuit-aggregate} +\end{figure} + + +\subsubsection{State transition circuit} + +\paragraph{Description.} Given the aggregated votes proof, this circuit verifies the correct inclusion of all new votes into the process's state Merkle tree. It generates the final state transition proof that will be validated by the Ethereum smart contract. + +\begin{itemize} + \item Constraints: Approximately 4 million + \item Curve: BN254 + \item Framework: Gnark + \item Actor: Sequencer +\end{itemize} + +\paragraph{Assertions.} + +\begin{itemize} + \item \emph{Aggregation verification}: The agreggated zkProof is valid. + \item \emph{Transition verification}: The MerkleTree transition witness proves every change between Root1 and Root2. + \item \emph{Public inputs integrity}: ProcessID, BallotMode, CensusRoot, EncryptionKey remain unchanged. + \item \emph{Votes counting}: Ballots are correctly counted as new or overwrites, and added to results accumulators. +\end{itemize} + +\martai{The corresponding circuit figure is not done yet.} + +\noi \textit{Old original text, I think it will help here:} + +When a new voting process begins, the Sequencer initializes a new State, represented by the root hash of a Merkle tree. This tree encapsulates all essential information about the voting process, including process parameters, voter registry (census), ballot configurations, and initial results. + +For each new batch of votes, the Sequencer updates the state by generating a zkSNARK proof that \textbf{validates the state transition from the current Root to a new Root}. This proof is submitted on-chain for settlement. By doing so, we maintain an immutable and verifiable record of the voting process on the blockchain. + +This approach allows anyone to access the latest verified state of the voting process from the Results Verification smart contract, along with the necessary data to process subsequent state updates. The system's design enables multiple Sequencers to participate in tallying votes. They can take the current State Root and its associated data to construct the next state, incorporating new votes into the tally. This decentralization of Sequencers helps prevent potential censorship and reinforces the robustness of the voting process. + +\paragraph{Maintaining the Chain.} + +The chain of integrity is maintained through a combination of smart contract enforcement and strict zkSNARK circuit constraints. This ensures that each state transition is valid and builds upon the last accepted state without requiring additional mechanisms. + +\begin{itemize} + \item \textbf{Sequential State Roots}: Each state transition updates the Merkle tree from a previous root (`Root1`) to a new root (`Root2`) after processing a batch of votes. + \item \textbf{Smart Contract Enforcement}: The smart contract verifies that the `Root1` provided in the zkSNARK proof matches the last committed state root stored on-chain. This guarantees that all transitions are sequential and based on the latest accepted state. + \item \textbf{Proof Validation}: The smart contract uses the zkSNARK verification key to validate the submitted proof. A valid proof confirms that the transition from `Root1` to `Root2` adheres to all protocol rules enforced by the circuit. + \item \textbf{State Update}: Upon successful verification, the smart contract updates the stored state root hash to`Root2`, ensuring an immutable and continuous chain of states. +\end{itemize} + +\paragraph{State Transition} + +To validate and process state transitions, \textbf{we employ a zkSNARK circuit that enforces all protocol constraints}. This circuit proves that the transition from the previous state Root to the new state Root is valid based on the newly processed votes. + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.12, draft = false]{\figs/state-transition.png}} +\end{figure} + +The circuit have the following inputs (the public ones are required to verify the proof). + +\begin{itemize} + \item \textbf{Public Inputs:} + \begin{itemize} + \item Previous State Root (Root1): The Merkle tree root before the state transition. + \item New State Root (Root2): The Merkle tree root after the state transition. + \item Blob Data Commitment (blobCommitment): The commitment to the data blob containing the new votes. + \end{itemize} + \item \textbf{Private Inputs:} + \begin{itemize} + \item Votes: The list of new votes being processed, including census proofs and authentication data. + \item Merkle Proofs of nullifier inclusion: Proofs that each voter nullifier is included in the census. + \item Merkle Proofs of results update: Proofs that the process results have been correctly updated. + \item Merkle Tree Update Witnesses: Necessary data (e.g., Merkle paths) to update the Merkle tree from Root1 to Root2. + \item Process Parameters: Retrieved from Root1 within the circuit. + \end{itemize} +\end{itemize} + +\begin{figure}[H] + \centering + \fbox{ + \includegraphics[scale = 0.3, draft = false]{\figs/circuit-inputs.png}} +\end{figure} + +The following constraints must be enforced by the circuit. + +\begin{itemize} + \item \textbf{Immutable Process Parameters}: Ensure that critical process parameters (such as `censusRoot` or `processId`) retrieved from `Root1` remain consistent and are not altered in the transition. + \item \textbf{Vote Validity}: Validate that each vote proof is correct. + \item \textbf{Voter Eligibility}: Confirm that each voter is included in the census by verifying Merkle proofs of inclusion against the `censusRoot` retrieved from `Root1`. + \item \textbf{Nullifier Non-Existence}: Ensure that the nullifier for each vote does not exist in the current state (`Root1`), preventing double voting. + \item \textbf{Nullifier Addition}: Correctly add each new nullifier to the state, resulting in `Root2`, updating the Merkle tree accordingly. + \item \textbf{Results Update}: Ensure that the voting results are accurately updated by adding the new votes to the previous results retrieved from `Root1`, so that `results2 = results1 + votes`. + \item \textbf{Blob Data Integrity}: Confirm that the data used in the circuit (votes, nullifiers) corresponds to the `blobCommitment` provided as a public input, ensuring that the votes processed are exactly those published in the data blob. + \item \textbf{State Transition Validity}: Ensure that the new state root (`Root2`) is correctly computed from `Root1` by applying the validated votes and updates to the Merkle tree. +\end{itemize} + +\subsection{Protocol flow} +\label{sec:vocdoni-protocol:flow} + +In Figure~\ref{fig:protocol-flow} we describe the protocol flow. + +\martai{About the figure: layout should be fixed. In addition, the icons for the different parties are missing.} + +\begin{figure}[H] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/protocol-flow}} + \caption{Vocdoni voting process overview.} + \label{fig:protocol-flow} +\end{figure} + +\subsection{Prior to voting (only once)} +\label{sec:vocdoni-protocol:prior-steps} + +\martai{Remove the first step, we assume contracts are already deployed or at least, the logic is available.} + +This is done only once. Then every voting will start its process from step in Section~\ref{sec:vocdoni-protocol:start}. + +Vocdoni: +\begin{enumerate} + \item Deployment of the 3 smart contracts. + \item Sequencers registry starts (it doesn't end). +\end{enumerate} + +Sequencers (nodes validadors) -- this process is always open: +\begin{enumerate} + \item Register this and that way. + \item Public keys? + \martai{Sequencers must also publish how they can be reached (either when they register or when they contribute to the DKG). They can use a URI: Uniform Resource Identifier.} + \item PROVIDE COLLATERAL. + \martai{What happens to the collateral? If done only once, then you lose it? Do you need to send a new tx with more collateral?} + \item Send transaction to Sequencer registry smart contract (pay for tx fee). +\end{enumerate} + +\subsection{Start of the voting process} +\label{sec:vocdoni-protocol:start} + +The organizer: +\begin{enumerate} + \item Prepares the census data \texttt{census\_data}. + \item Generates the census commitment \texttt{MT\_census.root = Com(census\_data)}. + \martai{In general, make use (link) to the functions defined in Section~\ref{sec:cryptographic-primitives}. For example, here the \texttt{MT.root()}.} + \martai{Additionally, after this step, the organizer should make a Merkle proof available to all eligible voters.} + \item Set voting details: duration, options, type, etc. + CENSUS MT ROOT. + \item Also a timeout for the DKG ceremony + minimum number of sequencers. + \item Send transaction to the Ethereum process management smart contract with all data. Note this transaction has a cost (Eth tx fees) that needs to be covered by the organizer. +\end{enumerate} + +\subsection{Key generation process} %Voting key generation +\label{sec:vocdoni-protocol:dkg} + +The sequencer: +\begin{enumerate} + \item Download all required data from the PM smart contract which includes the census MT root to handle the new vote. + \item Make contributions to DKG ceremony. +\end{enumerate} + +After XXX time (set by the organizer in the PM contract?): all contributions to DKG are done. + +\martai{The organizer decides a minimum number of sequencers (security factor).} + +\begin{itemize} + \item EPK ``becomes available". + \martai{I understand EPK becomes available in the SR smart contract, and that key is sent to the PM contract?} + \martai{The idea here is that some sequencer makes EPK available (a.k.a. sends a transaction). Alternatively, generate a SNARK proving the EPK has been generated correctly and the SC verifies it.} +\end{itemize} + +\subsection{Voting process} +\label{sec:vocdoni-protocol:voting} + +Voter: + +\begin{itemize} + \item Choose any of the available sequencers (from?? -- from the SR SC). + \item Fetch their census \textbf{Merkle proof} to prove eligibility (from the census registry). + \item Use the EPK to encrypt the voting choice. + \item Generate ZK-SNARK of satisfiability of circuit from Fig.~\ref{fig:circuit-voter} with protocol from Section~\ref{sec:cryptographic-primitives:zkp} to prove the validity of the encrypted vote and adherence to ballot protocol rules. We call this proof \textbf{vote proof}. + \item Send the encrypted vote, Merkle proof, validity proof, and identity proof to the sequencer. + \martai{I understand Validity proof refers to ``voter circuit"? Merkle proof is for inclusion, right? And identity proof is for example a signature??} +\end{itemize} + +Sequencer: + +\begin{itemize} + \item Fetch current state: retrieve the current valid process state root from the Etherem smart contract and the associated data from Ethereum blobs. + \martai{specify which SC.} + \item Generate a SK-SNARK proof of state transition proving: + \begin{itemize} + \item the validity of the ZK-SNARK proof provided by the voter, + \item the correct accumulation of votes from users, adding them to the process state, + \item the correct sum of the new encrypted votes using the homomorphic properties of ElGamal, + \item the new votes are from eligible users by checking the census Merkle proofs, + \item the new voters have not already voted by checking their nullifiers, or it is a correct vote overwrite, + \item the data blob hash matches the data used to verify the transition. + \end{itemize} + \item Submit updated state: send the new state root to the smart contract and store the updated data in Ethereum blobs. +\end{itemize} + +Sequencers keep accumulating votes and create state transition until the finalization of the process. + +\martai{I understand this finalization is a deadline set by the organizer.} + +SC: + +\begin{itemize} + \item Upon receiving a sequencer's transaction, the SC verifies the zk-SNARK proof provided byt he sequencer. + \item Ensure the origin root corresponds to the current stored state root. + \item Confirm that the blob hash matches the one stored in Ethereum. +\end{itemize} + +\subsection{Results validation} +\label{sec:vocdoni-protocol:validation} + +Once the voting is completed (I understand the timeout set by the organizer expires), the following things happen. + +Sequencer: + +\begin{itemize} + \item $t$ out of $n$ sequencers publish their shares corresponding to the EPK to the Ethereum smart contract. + \martai{specify which SC.} + \item When the threshold of shares is reached, the results can be decrypted by anyone. + \martai{mention that the SC computes the corresponding ESK, or that can be computed by anyone off-chain, since all info is public.} + \item Sequencers receive reward for their correct participants depending on the number of sequenced votes. + \martai{slash if they don't provide the right share? reward only dependent of sequenced votes? any relation to their participation in the computation of either EPK or ESK?} +\end{itemize} + +This way: + +\begin{itemize} + \item After the voting period ends and the results are decrypted, anyone can verify the correctness of the final result. + \martai{explain how.} + \item Use the zkSNARK state proof and publicly available data on-chain to ensure the integrity and correctness of the entire voting process. + \martai{elaborate on this.} +\end{itemize} + +\subsection{Finalization of the voting process} +\label{sec:vocdoni-protocol:finalization}