diff --git a/README.md b/README.md index e52cbca..ae7c111 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,15 @@ In a third terminal, start the NextJS frontend: yarn start ``` +7. **Compute Results** + +- In a fourth terminal, clone the maci repo - `git clone git@github.com:privacy-scaling-explorations/maci.git` and then reset to `ee3e2a6` commit using `git reset --hard ee3e2a6` +- Copy the zkeys generated from the maci wrapper repo to the cli directory of the maci repo using `cp -r maci-wrapper/packages/hardhat/zkeys maci/cli`. +- Install the dependencies using `pnpm i` and build the maci project using `pnpm run build` +- Copy the new contract addresses from the maci wrapper repo to the maci repo using `cp -r maci-wrapper/packages/contractAddresses.json maci/cli/build/contractAddresses.json`. +- After this you should be able to run the commands written in the [maci documentation](https://maci.pse.dev/docs/v1.2/cli). +- First merge signups, then merge messages, and then generate proof, and upload the tally.json file which is generated in the process to the admin panel after the poll is over. + Navigate to `http://localhost:3000` to interact with your dApp. Modify your app configuration in `packages/nextjs/scaffold.config.ts` and `packages/hardhat/constants.ts` as necessary. The deployed contracts will be saved to the file `packages/hardhat/contractAddresses.json`, this file is compatible with maci cli.