Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

homomorphism

homomorphism: ExpHom

Methods

byteTreeToCommitment

  • byteTreeToCommitment(byteTree: ByteTree): PGroupElement

byteTreeToReply

  • byteTreeToReply(byteTree: ByteTree): PRingElement

challenge

  • challenge(first: ByteTree, second: HashFunction): PRingElement

instanceToByteTree

  • instanceToByteTree(instance: PGroupElement): ByteTree

prove

  • prove(label: Uint8Array, instance: any, witness: any, hashfunction: HashFunction, randomSource: RandomSource, statDist: number): Uint8Array

Private sha1

  • sha1(bytes: string): string

verify

  • verify(label: Uint8Array, instance: PGroupElement | PGroupElement[], hashfunction: HashFunction, proof: Uint8Array): boolean

verifyElectionGuard

  • verifyElectionGuard(label: Uint8Array, instance: ByteTree, commitment: ByteTree | Uint8Array, challenge: Uint8Array, response: ByteTree | Uint8Array): boolean

Generated using TypeDoc