% !TeX root = main.tex % Doc sytle \setcounter{secnumdepth}{3} %enumerate sections up to depth 3 (subsubsection) % Set the first-level itemize label to use math mode \bullet \setlist[itemize,1]{label=$\bullet$} % The second-level enumerates (enumerate,2) should only show (a) when referenced (not (3a)). \setlist[enumerate,2]{label=(\alph*),ref=\alph*} % Working directory \newcommand{\definedir}[2]{\newcommand{#1}{#2}} \definedir{\secs}{../sections} \definedir{\figs}{../figures} \definedir{\bib}{../bibliography} % Hyperref setup %\hypersetup{ % final=true, % colorlinks=true, % linkcolor=blue, % urlcolor=blue, % citecolor=blue, %} % 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=green!40]{\textbf{Pau}: #1}} \newcommand{\paui}[1]{\todo[inline, size=\small, color=green!40]{\textbf{Pau}: #1}} \newcommand{\roger}[1]{\todo[size=\small, color=blue!40]{\textbf{Roger}: #1}} \newcommand{\rogeri}[1]{\todo[inline, size=\small, color=blue!40]{\textbf{Roger}: #1}} % Freefootnote \let\svthefootnote\thefootnote \newcommand\freefootnote[1]{% \let\thefootnote\relax% \footnotetext{#1}% \let\thefootnote\svthefootnote% } % Footnote spaces \setlength{\skip\footins}{20pt} % space between text and footnotes \setlength{\footnotesep}{1em} % space between individual footnotes % Table of contents style \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} % it works like p{} but centered % Make section entries bold in ToC \makeatletter \renewcommand{\@dotsep}{4.5} \renewcommand{\l@section}[2]{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt} \@tempdima=1.5em \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth {\leavevmode \advance\leftskip\@tempdima \hskip -\leftskip \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par} \makeatother % Adds vertical space before and after \subsubsection headings and ensures body text starts on a new line \makeatletter \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-18\p@ \@plus -4\p@ \@minus -4\p@}% % Before skip {4\p@ \@plus 2\p@ \@minus 2\p@}% % After skip {\normalfont\normalsize\bfseries}} % Font style \makeatother % Colours \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} % Elliptic curves \newcommand{\BW}[1]{\ensuremath{{#1}^{\text{\tiny \sf BW}}}\xspace} \newcommand{\BLS}[1]{\ensuremath{{#1}^{\text{\tiny \sf BLS}}}\xspace} \newcommand{\BN}[1]{\ensuremath{{#1}^{\text{\tiny \sf BN}}}\xspace} \newcommand{\BJ}[1]{\ensuremath{{#1}^{\text{\tiny \sf BJ}}}\xspace} \newcommand{\SEC}[1]{\ensuremath{{#1}^{\text{\tiny \sf SEC}}}\xspace} % Trees \newcommand{\tree}[1][]{\sf{MT}^{\sf{#1}}} \renewcommand{\root}[1][]{\sf{root}^{\sf{#1}}} \newcommand{\recentroots}{\sf{recentRoots}} \newcommand{\leaf}{\sf{leaf}} \newcommand{\leaves}{\sf{leaves}} \newcommand{\MTGenerate}{\sf{Generate}} \newcommand{\MTRoot}{\sf{Root}} \newcommand{\MTInsert}{\sf{Insert}} \newcommand{\MTProof}{\sf{Proof}} \newcommand{\MTMembershipProof}{\sf{MembershipProof}} \newcommand{\MTNonMembershipProof}{\sf{NonMembershipProof}} \newcommand{\MTRemove}{\sf{Remove}} \newcommand{\MTOpen}{\sf{Open}} \newcommand{\MTUpdate}{\sf{Update}} \newcommand{\MTVerify}{\sf{Verify}} \newcommand{\censusTree}{\sf{MT^{\census}}} \newcommand{\stateTree}{\sf{MT^{\state}}} % Circuits \newcommand{\public}{{\sf\color{teal}public}\xspace} \newcommand{\private}{{\sf\color{red}private}\xspace} \newcommand{\circuitstyle}[1]{{\sf{#1}}\xspace} \newcommand{\ballotcircuit}{\circuitstyle{BallotCircuit}} \newcommand{\verifiercircuit}{\circuitstyle{VerifierCircuit}} \newcommand{\aggregationcircuit}{\circuitstyle{AggregationCircuit}} \newcommand{\statetransitioncircuit}{\circuitstyle{StateTransitionCircuit}} \newcommand{\resultscircuit}{\circuitstyle{ResultsCircuit}} \newcommand{\publicinputs}{\circuitstyle{PI}} \newcommand{\witness}{\circuitstyle{witness}} % Roles \definecolor{voterbg}{RGB}{200, 230, 200} % soft, muted green \definecolor{organizerbg}{RGB}{245, 222, 135} % classic mustard tone \definecolor{sequencerbg}{RGB}{235, 225, 250} % soft lavender-like purple \definecolor{darkgrayborder}{RGB}{100, 100, 100} % dark neutral gray \newcommand{\voter}{\fcolorbox{darkgrayborder}{voterbg}{ \textsf{voter} }\xspace} \newcommand{\organizer}{\fcolorbox{darkgrayborder}{organizerbg}{ \textsf{organizer} }\xspace} \newcommand{\sequencer}{\fcolorbox{darkgrayborder}{sequencerbg}{ \textsf{sequencer} }\xspace} \newcommand{\sequencers}{\fcolorbox{darkgrayborder}{sequencerbg}{ \textsf{sequencers} }\xspace} % Ballot protocol \newcommand{\ballotstyle}[1]{\texttt{#1}\xspace} \newcommand{\numfields}{\ballotstyle{numFields}} \newcommand{\maxvalue}{\ballotstyle{maxValue}} \newcommand{\minvalue}{\ballotstyle{minValue}} \newcommand{\uniquevalues}{\ballotstyle{uniqueValues}} \newcommand{\maxvaluesum}{\ballotstyle{maxValueSum}} \newcommand{\minvaluesum}{\ballotstyle{minValueSum}} \newcommand{\costexponent}{\ballotstyle{costExponent}} \newcommand{\totalvaluesum}{\ballotstyle{totalValueSum}} \newcommand{\validvote}{\ballotstyle{validVote}} % Voting protocol \newcommand{\variablestyle}[1]{\texttt{#1}\xspace} \newcommand{\true}{\variablestyle{true}} \newcommand{\census}{\variablestyle{census}} \newcommand{\censusdata}{\variablestyle{censusData}} \newcommand{\censusorigin}{\variablestyle{censusOrigin}} \newcommand{\censusuri}{\variablestyle{censusURI}} \newcommand{\voteproof}{\variablestyle{voteProof}} \newcommand{\ballotproof}{\variablestyle{ballotProof}} \newcommand{\censusproof}{\variablestyle{censusProof}} \newcommand{\authenticationproof}{\variablestyle{authenticationProof}} \newcommand{\aggregationproof}{\variablestyle{aggregationProof}} \newcommand{\resultsproof}{\variablestyle{resultsProof}} \newcommand{\voteid}{\variablestyle{voteID}} \newcommand{\ballot}{\variablestyle{ballot}} \newcommand{\vote}{\variablestyle{vote}} \newcommand{\processid}{\variablestyle{processID}} \newcommand{\censuspf}{\variablestyle{censusProof}} \newcommand{\commitment}{\variablestyle{identityCommitment}} \newcommand{\nullifier}{\variablestyle{nullifier}} \newcommand{\encryptedballot}{\variablestyle{encryptedBallot}} \newcommand{\reencryptedballot}{\variablestyle{reEncryptedBallot}} \newcommand{\zkproof}{\variablestyle{ZKproof}} \newcommand{\signature}{\variablestyle{signature}} \newcommand{\address}{\variablestyle{address}} \newcommand{\stateproof}{\variablestyle{stateProof}} \newcommand{\merkleproofs}{\variablestyle{merkleProofs}} \newcommand{\merkleInclusionPf}{\variablestyle{merkleInclusionProof}} \newcommand{\merkleNInclusionPf}{\variablestyle{merkleNonInclusionProof}} % State Merkle tree \newcommand{\censusroot}{\variablestyle{censusRoot}} \newcommand{\stateroot}{\variablestyle{stateRoot}} \newcommand{\type}{\variablestyle{type}} %\newcommand{\path}{\variablestyle{path}} \newcommand{\state}{\variablestyle{state}} \newcommand{\ballotmode}{\variablestyle{ballotMode}} \newcommand{\epk}{\variablestyle{encryptionKey}} \newcommand{\decryptionkey}{\variablestyle{decryptionKey}} \newcommand{\addaccumulator}{\variablestyle{resultsAdd}} \newcommand{\substractaccumulator}{\variablestyle{resultsSub}} \newcommand{\addresses}{\variablestyle{addresses}} \newcommand{\nullifiers}{\variablestyle{nullifiers}} \newcommand{\weight}{\variablestyle{weight}} \newcommand{\numoverwrites}{\variablestyle{numOverwrites}} \newcommand{\numvotes}{\variablestyle{numVotes}} \newcommand{\blobcomm}{\variablestyle{blobComm}} % Others \newcommand{\noi}{\noindent} \newcommand{\conc}{\:||\:} \newcommand{\batchsize}{\variablestyle{batchSize}} \newcommand{\old}{\texttt{old}\xspace} \newcommand{\new}{\texttt{new}\xspace} % Hyperlinks \newcommand{\hlset}[1]{\hypertarget{\detokenize{#1}}{#1}} \newcommand{\hlget}[1]{\hyperlink{\detokenize{#1}}{#1}} % Smart contracts \newcommand{\smartcontractstyle}[1]{{\sf{#1}}\xspace} \newcommand{\orgregistry}{\smartcontractstyle{OrganizationRegistry}} \newcommand{\electionregistry}{\smartcontractstyle{ElectionRegistry}} \newcommand{\dkgmanagement}{\smartcontractstyle{KeyManagement}} \newcommand{\statetransitionverifier}{\smartcontractstyle{StateTransitionVerifier}} \newcommand{\resultsverifier}{\smartcontractstyle{ResultsVerifier}} \newcommand{\censusmanagement}{\smartcontractstyle{CensusManagement}} % Blobs \newcommand{\blobstyle}[1]{{\sf{#1}}\xspace} \newcommand{\blobdata}{\blobstyle{blobData}} \newcommand{\blobcom}{\blobstyle{blobCommitment}} \newcommand{\evalpoint}{\blobstyle{evalPoint}} \newcommand{\openproof}{\blobstyle{openingProof}} % Cryptographic primitives \newcommand{\methodstyle}[1]{{\sf{#1}}\xspace} \newcommand{\Keccak}{\methodstyle{Keccak}} \newcommand{\Poseidon}{\methodstyle{Poseidon}} \newcommand{\Mimc}{\methodstyle{MiMC}} \newcommand{\Multimimc}{\methodstyle{MultiMiMC7}} \newcommand{\Enc}{\methodstyle{Enc}} \newcommand{\Dec}{\methodstyle{Dec}} \newcommand{\EncAdd}{\methodstyle{EncAdd}} \newcommand{\ReEnc}{\methodstyle{ReEnc}} \newcommand{\SSign}{\methodstyle{S.Sign}} \newcommand{\SVer}{\methodstyle{S.Verify}} \newcommand{\SPubKey}{\methodstyle{S.ExtractPublicKey}} \newcommand{\CCommit}{\methodstyle{C.Commit}} \newcommand{\CSetup}{\methodstyle{C.Setup}} \newcommand{\COpen}{\methodstyle{C.Open}} \newcommand{\CVerifyPoly}{\methodstyle{C.VerifyPoly}} \newcommand{\CCreateWitness}{\methodstyle{C.CreateWitness}} \newcommand{\CVerifyEval}{\methodstyle{C.VerifyEval}} \newcommand{\CProve}{\methodstyle{C.Prove}} \newcommand{\CVerify}{\methodstyle{C.Verify}} \newcommand{\PProve}{\methodstyle{P.Prove}} \newcommand{\PVerify}{\methodstyle{P.Verify}} \newcommand{\GenerateShares}{\methodstyle{GenerateShares}} \newcommand{\VerifyShare}{\methodstyle{VerifyShare}} \newcommand{\GenerateEncryptedShares}{\methodstyle{GenerateEncryptedShares}} \newcommand{\VerifyEncryptedShare}{\methodstyle{VerifyEncryptedShare}} \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{\token}{VOC\xspace} \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}} % Misc \newcommand{\davinci}{DAVINCI\xspace} \newcommand{\Davinci}{DAVINCI\xspace} \newcommand{\keywarden}{key warden\xspace} \newcommand{\Keywarden}{Key warden\xspace} \newcommand{\keywardens}{key wardens\xspace} \newcommand{\Keywardens}{Key wardens\xspace} % Draft watermark %\ifdraft{\SetWatermarkScale{4}}{\SetWatermarkScale{0}} % New foonote referencing a previous footmark \makeatletter \newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark} \makeatother