2024-11-14 10:31:32 +01:00
# Input Generator for the Plonky2 Circuit
This crate generates input to the proof circuit based on the test parameters. The proof input generated can be ported into
the [`plonky2 codex proof circuits` ](../codex-plonky2-circuits ). Currently only generates fake data for testing.
2025-01-17 10:05:39 +01:00
## Code organization
- [`merkle_tree` ](./src/merkle_tree ) is the implementation of "safe" merkle tree used in codex, consistent with the one [here ](https://github.com/codex-storage/nim-codex/blob/master/codex/merkletree/merkletree.nim ).
2024-11-14 10:31:32 +01:00
2025-07-03 13:43:50 +02:00
- [`input_generator` ](./src/input_generator ) contains the necessary function to generate the proof input.
2024-11-14 10:31:32 +01:00
2025-04-10 12:41:32 +02:00
- [`params` ](./src/params.rs ) is the test parameters used to generate the input.
2024-11-14 10:31:32 +01:00
2025-07-03 13:43:50 +02:00
- [`hash` ](./src/hash ) contains the non-circuit version of hash (with and without padding) used to hash cells and during sampling.
2024-11-14 10:31:32 +01:00
2025-07-03 13:43:50 +02:00
## Tests
See [`tests` ](./tests ) for all tests.
To run a specific test, use:
```bash
cargo test --features parallel --test < test_file_name >
```
Or for more specific tests, use:
```bash
cargo test --features parallel --test < test_file_name > -- < test_name >
```
2024-11-14 10:31:32 +01:00