Skip to content

Commit 2985c80

Browse files
committed
update: README.md
1 parent 43cee2a commit 2985c80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ If successfully, it will generate the binary files in `target/release`/{`sha2-ru
8484
8585
> 5. The environment variable `KEY_GENERATION` is set to "true", it will generate the proof key (pk), the verification key (vk) and the verifier contract and store them at the path indicated by `VERIFYING_KEY_PATH`.Then, the `KEY_GENERATION` should be set to "false" , next executing the host will generate the snark proof using the same pk and vk.
8686
87+
> 6. The degree bits for tables can be configured using environment variables such as `ARITHMETIC`, `CPU`, etc. For example, if the error "Error: Missing preprocessed circuits for Cpu table with size 12" appears, resolve it by running: `export CPU="12..13"`.
88+
8789
> [!WARNING]
8890
> The environmental variable `SEG_SIZE` in the run_proving.sh affects the final proof generation.
8991
9092
> The guest program's ELF with the input is split into segments according the SEG_SIZE, based on the cycle count.
9193
9294
> When generating proofs on the local machine, if the log shows "[the seg_num is:1 ]", please reduce SEG_SIZE or increase the input. If generating proofs through the proof network, SEG_SIZE must be within the range [65536, 262144].
9395
96+
> The SEG_SIZE also affects the tables' degree bits.
9497
### Example 1 : `sha2-rust`
9598

9699
This host program sends the private input pri_input = vec![5u8; 1024] and its hash (hash(pri_input)) to the guest program for verification of the hash value.

0 commit comments

Comments
 (0)