Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • VDecryptionRecord

Implements

Index

Constructors

constructor

  • new VDecryptionRecord(parentContext: string[], label: Uint8Array, decryption: TallyDecryption | SpoiledDecryption, selectionEncryptions: ElGamalMessage[], publicKeys: ModPGroupElement[], selectionIndex: number): VDecryptionRecord

Properties

context

context: string[] = ...

Returns the context of this record, useful for showing the context of a verification in the record.

The context is just a list of strings, showing the tree path to the record.

decryption

decryption: TallyDecryption | SpoiledDecryption

index

index: number

label

label: Uint8Array

publicKeys

publicKeys: ModPGroupElement[]

selectionEncryptions

selectionEncryptions: ElGamalMessage[]

Methods

Private allShares

  • allShares(obj: ModPGroupElement[] | (ModPGroupElement | Error)[]): obj is ModPGroupElement[]

extractDecryptionValues

  • extractDecryptionValues(): [ElGamalMessage, BigNaturalNumber1, DecryptionShare[], number]

Private isTallyDecryption

  • isTallyDecryption(value: TallyDecryption | SpoiledDecryption): value is TallyDecryption

verify

Generated using TypeDoc