Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectionConstants

A public description of the mathematical group used for the encryption and processing of ballots. One of these should accompany every batch of encrypted ballots, allowing future code that might process those ballots to determine what parameters were in use and possibly give a warning or error if they were unexpected.

The byte arrays are defined to be big-endian.

Hierarchy

  • ElectionConstants

Implements

Index

Constructors

  • new ElectionConstants(largePrime: bigint, smallPrime: bigint, cofactor: bigint, generator: bigint): ElectionConstants

Properties

cofactor: bigint
generator: bigint
largePrime: bigint
smallPrime: bigint

Methods

Generated using TypeDoc