Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / Prover

Class: Prover

Defined in: contracts/build/tasks/helpers/Prover.d.ts:6

Prover class is designed to prove message processing and tally proofs on-chain.

Constructors​

Constructor​

new Prover(params): Prover

Defined in: contracts/build/tasks/helpers/Prover.d.ts:36

Initialize class properties

Parameters​

params​

IProverParams

constructor params

Returns​

Prover

Methods​

proveMessageProcessing()​

proveMessageProcessing(proofs): Promise<void>

Defined in: contracts/build/tasks/helpers/Prover.d.ts:42

Prove message processing on-chain

Parameters​

proofs​

Proof[]

proofs

Returns​

Promise<void>


proveTally()​

proveTally(proofs): Promise<void>

Defined in: contracts/build/tasks/helpers/Prover.d.ts:48

Prove tally on-chain

Parameters​

proofs​

Proof[]

tally proofs

Returns​

Promise<void>


submitResults()​

submitResults(tallyData, recipients): Promise<void>

Defined in: contracts/build/tasks/helpers/Prover.d.ts:55

Submit tally results on chain

Parameters​

tallyData​

TallyData

tally data

recipients​

ISubmitResultsParams

number of recipients

Returns​

Promise<void>