mirror of
https://github.com/logos-storage/proof-aggregation.git
synced 2026-01-07 16:23:11 +00:00
update readme
This commit is contained in:
parent
00ee710354
commit
6641199f78
@ -5,9 +5,7 @@ This crate is an implementation of the [codex storage proofs circuits](https://g
|
|||||||
|
|
||||||
## Code organization
|
## Code organization
|
||||||
|
|
||||||
- [`merkle_safe`](./src/merkle_tree/merkle_safe.rs) 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).
|
- [`merkle_circuit`](./src/circuits/merkle_circuit) is the Plonky2 Circuit implementation of "safe" merkle tree.
|
||||||
|
|
||||||
- [`merkle_circuit`](./src/circuits/merkle_circuit) is the Plonky2 Circuit implementation of "safe" merkle tree above.
|
|
||||||
|
|
||||||
- [`sample_cells`](./src/circuits/sample_cells.rs) is the Plonky2 Circuit implementation for sampling cells in dataset merkle tree.
|
- [`sample_cells`](./src/circuits/sample_cells.rs) is the Plonky2 Circuit implementation for sampling cells in dataset merkle tree.
|
||||||
|
|
||||||
|
|||||||
@ -6,9 +6,11 @@ the [`plonky2 codex proof circuits`](../codex-plonky2-circuits). Currently only
|
|||||||
|
|
||||||
## Code organization
|
## 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).
|
||||||
|
|
||||||
- [`gen_input`](./src/gen_input.rs) contains the necessary function to generate the proof input.
|
- [`gen_input`](./src/gen_input.rs) contains the necessary function to generate the proof input.
|
||||||
|
|
||||||
- [`json`](./src/json.rs) contains the serialization function to read and write the proof input from/to json files.
|
- [`json`](./src/serialization) contains the serialization functions to read and write the proof input from/to json files.
|
||||||
|
|
||||||
- [`params`](./src/params.rs) is the test parameters used to generate the input. The params include circuit params as well.
|
- [`params`](./src/params.rs) is the test parameters used to generate the input. The params include circuit params as well.
|
||||||
|
|
||||||
|
|||||||
@ -65,10 +65,10 @@ export NCELLS=512 # Number of cells in this slot
|
|||||||
Alternatively, for testing you can just use the default parameters as follows:
|
Alternatively, for testing you can just use the default parameters as follows:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use proof_input::params::TestParams;
|
use proof_input::params::Params;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let params = TestParams::<F,D>::default();
|
let params = Params::default();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### Step 2: Run the Script
|
#### Step 2: Run the Script
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user