Skip to content

Commit c2e4b67

Browse files
feat(proto): add VERIFICATION_FAILURE, PROVING_FAILURE, INPUT_NOT_FOUND ProofRequestError variants
1 parent 3df3ca0 commit c2e4b67

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

crates/types/network/src/types.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,6 +2758,15 @@ pub enum ProofRequestError {
27582758
/// The public values hash provided in the request does not match the hash from the execution
27592759
/// oracle.
27602760
PublicValuesMismatch = 4,
2761+
/// The proof failed verification (e.g., invalid proof, public values hash mismatch during
2762+
/// verification).
2763+
VerificationFailure = 5,
2764+
/// Execution succeeded but a downstream proving task (controller, shard prove,
2765+
/// recursion, wrap, etc.) hit a fatal error.
2766+
ProvingFailure = 6,
2767+
/// An input artifact was missing from the prover's store (e.g., evicted under
2768+
/// memory pressure, or never uploaded by the scheduler).
2769+
InputNotFound = 7,
27612770
}
27622771
impl ProofRequestError {
27632772
/// String value of the enum field names used in the ProtoBuf definition.
@@ -2771,6 +2780,9 @@ impl ProofRequestError {
27712780
Self::VerificationKeyMismatch => "VERIFICATION_KEY_MISMATCH",
27722781
Self::UnknownFailure => "UNKNOWN_FAILURE",
27732782
Self::PublicValuesMismatch => "PUBLIC_VALUES_MISMATCH",
2783+
Self::VerificationFailure => "VERIFICATION_FAILURE",
2784+
Self::ProvingFailure => "PROVING_FAILURE",
2785+
Self::InputNotFound => "INPUT_NOT_FOUND",
27742786
}
27752787
}
27762788
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -2783,6 +2795,9 @@ impl ProofRequestError {
27832795
"VERIFICATION_KEY_MISMATCH" => Some(Self::VerificationKeyMismatch),
27842796
"UNKNOWN_FAILURE" => Some(Self::UnknownFailure),
27852797
"PUBLIC_VALUES_MISMATCH" => Some(Self::PublicValuesMismatch),
2798+
"VERIFICATION_FAILURE" => Some(Self::VerificationFailure),
2799+
"PROVING_FAILURE" => Some(Self::ProvingFailure),
2800+
"INPUT_NOT_FOUND" => Some(Self::InputNotFound),
27862801
_ => None,
27872802
}
27882803
}

proto/types.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,4 +1767,13 @@ enum ProofRequestError {
17671767
// The public values hash provided in the request does not match the hash from the execution
17681768
// oracle.
17691769
PUBLIC_VALUES_MISMATCH = 4;
1770+
// The proof failed verification (e.g., invalid proof, public values hash mismatch during
1771+
// verification).
1772+
VERIFICATION_FAILURE = 5;
1773+
// Execution succeeded but a downstream proving task (controller, shard prove,
1774+
// recursion, wrap, etc.) hit a fatal error.
1775+
PROVING_FAILURE = 6;
1776+
// An input artifact was missing from the prover's store (e.g., evicted under
1777+
// memory pressure, or never uploaded by the scheduler).
1778+
INPUT_NOT_FOUND = 7;
17701779
}

0 commit comments

Comments
 (0)