The voter: a machine-level implementation of the voting interface
Where Leios.Voting.Certifier serves the
VotingC interface as a single shared ideal
functionality, this module gives the corresponding local
component: a per-node machine that implements the same interface by
sending votes across the diffusion network.
The voter sits between its node and the network translation layer
(NetTranslateV in Network.Leios). The network
delivers one list of votes per round, and the round protocol is a strict
request-response chain, so the voter behaves as follows:
- a
CASTfrom the node is recorded and buffered inpending, since the voter cannot send on its own initiative, - when the network delivers the round’s votes (
Deliver), the voter records them and responds with its buffered casts (Diffuse), - a certificate
QUERYis answered synchronously from the vote log, positively iff the log contains a real certificate (Real.RealCertified); as in the protocol, the RB producer assembles the certificate locally, and it is never a network object.
That n voters over the diffusion network realize
Leios.Voting.Certifier is open; see Leios1ʳ in
Network.Leios.
Channels
Upward the voter speaks VotingC, the channel the node
also uses towards the certifier.
The machine
The network authenticates nothing: a vote’s voter and block are
claims inside the Vote value, and validity is checked only
in the certificate.
Refinement into the real transition system
Every machine step is a sequence of Real.Steps on the
vote log, so every log the voter reaches is reachable in the real
scheme.
Certificate soundness
AnswersCert gives the block a step positively answers a
query for, if any.
Combining with the refinement Leios.Voting.Real →
Leios.Voting.Ideal: whenever the voter answers its node’s
certificate query positively, some honest party validated that block,
provided the honest valid votes in the voter’s log are backed by
validation, and fewer than threshold parties cover all
dishonest valid voters in the log.