Skip to content

Commit

Permalink
docs(maci): added README for the circuit package and fixed typo in co…
Browse files Browse the repository at this point in the history
…ntract's README
  • Loading branch information
ctrlc03 committed Dec 2, 2022
1 parent d8a6b09 commit 4d0f74b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions circuits/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Circuits

This package contains the zk-SNARK circuits written in Circom 2.0.

The main circuits are:

* `processMessages.circom`
* `tallyVotes.circom`
* `subsidy.circom`

The rest of the circuits are utilities templates that are required for the main circuits to work correctly. These include utilities such as Float math, conversion of private keys, and Poseidon hashing/encryption.

Please refer to the [documentation](https://privacy-scaling-explorations.github.io/maci/circuits.html) for a more in depth explanation

## Testing

In order to test the circuits package follow the instructions below:

1. Configure `circomHelperConfig.json` with the correct path to the circom binary. If installed via `cargo` it will likely be in `~/.cargo/bin/circom`
2. run `npm run circom-helper` and wait for it to compile all test circuits and expose the JSON API
3. run `npm run test` to run all tests or add `-$CIRCUIT_NAME` to test individually (e.g. `npm run test-processMessages`)


2 changes: 1 addition & 1 deletion contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For more information please refer to the [documentation for Contracts](http://pr
- Resides inside `Poll.sol` and allows to deploy a new Poll contract.

* **`DomainObjs.sol`**
- Defines `struct`s that represent domain objects.
- Defines `structs` that represent domain objects.

* **`IMACI`**
- The interface for the MACI contract - describes callable functions
Expand Down

0 comments on commit 4d0f74b

Please sign in to comment.