typed union of acceptable strings
typed union of acceptable strings
The type of election.
The type of geopolitical unit.
Enumeration for contest algorithm or rules in the contest.
ElectionGuard GroupContext using bigint as the underlying engine and implementing the "pretty-much-full-strength" 3072-bit group (which can run 1.8x faster than the 4096-bit group) for modular exponentiations.
ElectionGuard GroupContext using bigint as the underlying engine and implementing the "full-strength" 4096-bit group.
Given some externally-provided ElectionConstants, either returns a suitable GroupContext, or undefined to indicate an error.
Breaks the beautiful functional aspects of using a codec decoder and either gives us the actual value or throws an error. Useful for tests or when we really do want to throw an error.
Encrypt a PlaintextBallot into a CiphertextBallot.
This method accepts a ballot representation that only includes true
selections. It will
fill missing selections for a contest with false
values, and generate placeholder
selections to represent the number of seats available for a given contest.
This method also allows for ballots to exclude passing contests for which the voter made no
selections. It will fill missing contests with false
selections and generate placeholder
selections that are marked true
.
The timestamp should be in the form of the number of seconds since the Unix epoch, e.g., equivalent to calling Math.floor(Date.now() / 1000). If it's left out, it will be set to the current time.
Given a context, returns all the codecs for that context.
Generated using TypeDoc
typed union of acceptable strings