Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConstantChaumPedersenProofKnownSecretKey

Proof that the ciphertext is a given constant.

Hierarchy

  • ConstantChaumPedersenProofKnownSecretKey

Index

Constructors

Properties

constant: number
usage: string

Methods

  • Validates a proof against an ElGamal ciphertext.

    Parameters

    • ciphertext: ElGamalCiphertext

      An ElGamal ciphertext

    • publicKey: ElGamalPublicKey | ElGamalKeypair

      The public key of the election

    • qbar: ElementModQ

      The election extended base hash (Q')

    • expectedConstant: number = -1

      Optional parameter. If specified, the constant in the proof is validated against the expected constant.

    Returns boolean

    true if the proof is valid

  • Produces a proof that a given ElGamal encryption corresponds to a specific total value. This requires the prover to know the secret ElGamal encryption key.

    Parameters

    • ciphertext: ElGamalCiphertext

      The ElGamal ciphertext we're proving about

    • plaintext: number

      The plaintext constant value used to make the ElGamal ciphertext (L in the spec)

    • keypair: ElGamalKeypair

      The ElGamal secret and public key pair for the election

    • seed: ElementModQ

      Used to generate other random values here

    • qbar: ElementModQ

      The election extended base hash (Q')

    Returns ConstantChaumPedersenProofKnownSecretKey

Generated using TypeDoc