mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-04 22:43:07 +00:00
36 lines
1.7 KiB
Markdown
36 lines
1.7 KiB
Markdown
|
|
Proof circuit input generator
|
|
-----------------------------
|
|
|
|
This is a Nim program to generate inputs for the proof circuit, and also the
|
|
main component of the circuit (it needs some global parameters).
|
|
|
|
Note: this is only for testing purposes, it's not optimized, and does not
|
|
use real data.
|
|
|
|
### Usage
|
|
|
|
$ ./cli [options] --output=proof_input.json --circom=proof_main.circom
|
|
|
|
available options:
|
|
-d, --depth = <maxdepth> : maximum depth of the slot tree (eg. 32)
|
|
-N, --maxslots = <maxslots> : maximum number of slots (eg. 256)
|
|
-c, --cellSize = <cellSize> : cell size in bytes (eg. 2048)
|
|
-b, --blockSize = <blockSize> : block size in bytes (eg. 65536)
|
|
-s, --nslots = <nslots> : number of slots in the dataset (eg. 13)
|
|
-n, --nsamples = <nsamples> : number of samples we prove (eg. 100)
|
|
-e, --entropy = <entropy> : external randomness (eg. 1234567)
|
|
-S, --seed = <seed> : seed to generate the fake data (eg. 12345)
|
|
-f, --file = <datafile.bin> : slot data file
|
|
-i, --index = <slotIndex> : index of the slot (within the dataset) we prove
|
|
-k, --log2ncells = <log2(ncells)> : log2 of the number of cells inside this slot (eg. 10)
|
|
-K, --ncells = <ncells> : number of cells inside this slot (eg. 1024; must be a power of two)
|
|
-o, --output = <inupt.json> : the JSON file into which we write the proof input
|
|
-C, --circom = <main.circom> : the circom main component to create with these parameters
|
|
|
|
You can generate only the `.json` or only the `.circom` file, or both at the same
|
|
time.
|
|
|
|
There are some default values for all the rest of the parameters.
|
|
|