2022-11-17 13:49:02 +01:00
|
|
|
# codex-zk
|
|
|
|
|
|
|
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
|
|
[](https://opensource.org/licenses/MIT)
|
2023-02-08 15:46:17 +01:00
|
|
|
|
|
|
|
WIP Zero Knowledge tooling for the Codex project
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Licensed and distributed under either of
|
|
|
|
|
|
|
|
* MIT license: [LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
* Apache License, Version 2.0, ([LICENSE-APACHEv2](LICENSE-APACHEv2) or http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
|
|
|
|
at your option. These files may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
|
|
|
## Usage
|
2023-03-20 22:12:01 -06:00
|
|
|
|
|
|
|
First, clone the repo and install the circom components:
|
|
|
|
|
|
|
|
```sh
|
2023-02-21 18:06:09 -05:00
|
|
|
git clone git@github.com:status-im/codex-storage-proofs.git
|
|
|
|
cd codex-storage-proofs
|
|
|
|
npm i
|
|
|
|
cd circuits
|
|
|
|
```
|
2023-02-08 15:46:17 +01:00
|
|
|
|
2023-03-20 22:12:01 -06:00
|
|
|
Nex, compile circuits:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
../scripts/circuit_prep.sh
|
2023-02-08 15:46:17 +01:00
|
|
|
```
|
|
|
|
|
2023-02-21 18:06:09 -05:00
|
|
|
Running the tests:
|
|
|
|
|
2023-03-20 22:12:01 -06:00
|
|
|
```sh
|
|
|
|
cargo test -r # run tests in release mode by default for speed
|
2023-02-21 18:06:09 -05:00
|
|
|
```
|