2024-10-07 10:36:11 +02:00
# Codex Plonky2 Circuits
This crate is an implementation of the [codex storage proofs circuits ](https://github.com/codex-storage/codex-storage-proofs-circuits ) for the plonky2 proof system.
2024-10-15 14:33:02 +02:00
## Code organization
2025-07-03 13:51:35 +02:00
- [`circuit_trait` ](./src/circuit_trait ) contains a general trait for all Plonky2 circuit to automate the building and proving.
2024-10-15 14:33:02 +02:00
2025-07-03 13:51:35 +02:00
- [`circuits` ](./src/circuits/ ) is the Plonky2 Circuit implementation for sampling cells in dataset merkle tree.
2024-10-18 12:45:31 +02:00
2025-07-03 13:51:35 +02:00
- [`recursion` ](./src/recursion/ ) contains the (2-to-1 tree) recursion circuits for aggregating proofs.
2024-11-14 10:31:32 +01:00
2025-07-03 13:51:35 +02:00
- [`bn254_wrapper` ](./src/bn254_wrapper/ ) contains the poseidon hash implementation for bn254 curve.
2024-11-14 10:31:32 +01:00
2025-07-03 13:51:35 +02:00
- [`serialization` ](./src/serialization.rs ) contains functions for serializing and deserializing the circuit data and proofs.
2025-04-10 12:41:32 +02:00
- [`error` ](./src/error.rs ) contains the list of error related to the circuits.
2024-11-14 10:31:32 +01:00
2024-10-15 14:33:02 +02:00