-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prover): add chunk & batch proving circuit error handling
- Loading branch information
1 parent
f8d48a6
commit 97801c5
Showing
6 changed files
with
176 additions
and
54 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
mod batch; | ||
mod chunk; | ||
mod utils; | ||
mod types; |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
// Represents the result of a chunk proof checking operation. | ||
// `ok` indicates whether the proof checking was successful. | ||
// `error` provides additional details in case the check failed. | ||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct CheckChunkProofsResponse { | ||
ok: bool, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
error: Option<String>, | ||
} | ||
|
||
// Encapsulates the result from generating a proof. | ||
// `message` holds the generated proof in byte slice format. | ||
// `error` provides additional details in case the proof generation failed. | ||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct ProofResult { | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
message: Option<Vec<u8>>, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
error: Option<String>, | ||
} |
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