Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConstantChaumPedersenProofKnownNonce

Proof that the ciphertext is a given constant.

Hierarchy

  • ConstantChaumPedersenProofKnownNonce

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

Generated using TypeDoc