Skip to content

Commit

Permalink
fix the argument list for proveOnChain
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Sep 16, 2022
1 parent 59ef416 commit 6c253b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tally-verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ node build/index.js genProofs \
--output proofs.json
```

Coordinator private key must be in the MACI key format (starts with `macisk`).
Ethereum private key can be any private key that controls the necessary amount of ETH to pay for gas.
The coordinator private key (`COORDINATOR_PRIVKEY`) must be in the MACI key format (starts with `macisk`). It is used to decrypt messages.

The `genProofs` command will create two files: `proofs.json` and `tally.json`. The `proofs.json` file will be needed to run the next command which submits proofs to MACI contract:
The `genProofs` command will create two files: `proofs.json` and `tally.json`. The `proofs.json` file will be needed to run the next command, `proveOnChain`, which submits proofs to the MACI contract:

```
node build/index.js proveOnChain \
--eth-provider <json-rpc-api-url> \
--contract <maci-address> \
--privkey <coordinator-private-key> \
--eth-privkey <eth-private-key> \
--proof-file proofs.json
```

The Ethereum private key (`eth-private-key`) can be any private key that controls the necessary amount of ETH to pay for gas.

The process may take several hours. Results can be found in `tally.json` file, which must then be published via IPFS.

Finally, the [CID](https://ipfs.io/ipns/docs.ipfs.io/concepts/content-addressing/) of tally file must be submitted to `FundingRound` contract:
Expand Down

0 comments on commit 6c253b4

Please sign in to comment.