-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abe66c6
commit 89509a1
Showing
8 changed files
with
435 additions
and
81 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
// BatchProver is used to: | ||
// - Batch a list of chunk proofs | ||
// - Bundle a list of batch proofs | ||
void init_batch_prover(char* params_dir, char* assets_dir); | ||
// BatchVerifier is used to: | ||
// - Verify a batch proof | ||
// - Verify a bundle proof | ||
void init_batch_verifier(char* params_dir, char* assets_dir); | ||
|
||
char* get_batch_vk(); | ||
char* check_chunk_proofs(char* chunk_proofs); | ||
char* gen_batch_proof(char* chunk_hashes, char* chunk_proofs); | ||
char* gen_batch_proof(char* chunk_hashes, char* chunk_proofs, char* batch_header); | ||
char verify_batch_proof(char* proof, char* fork_name); | ||
|
||
char* get_bundle_vk(); | ||
char* gen_bundle_proof(char* batch_proofs); | ||
char verify_bundle_proof(char* proof); | ||
|
||
void init_chunk_prover(char* params_dir, char* assets_dir); | ||
void init_chunk_verifier(char* params_dir, char* assets_dir); | ||
char* get_chunk_vk(); | ||
char* gen_chunk_proof(char* block_traces); | ||
char verify_chunk_proof(char* proof); | ||
char verify_chunk_proof(char* proof, char* fork_name); | ||
|
||
char* block_traces_to_chunk_info(char* block_traces); | ||
void free_c_chars(char* ptr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.