Skip to content

Commit 0169434

Browse files
feat(proto): add VERIFICATION_FAILURE and PROVING_FAILURE ProofRequestError variants
1 parent 3df3ca0 commit 0169434

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

crates/types/network/src/types.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,6 +2758,12 @@ 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,
27612767
}
27622768
impl ProofRequestError {
27632769
/// String value of the enum field names used in the ProtoBuf definition.
@@ -2771,6 +2777,8 @@ impl ProofRequestError {
27712777
Self::VerificationKeyMismatch => "VERIFICATION_KEY_MISMATCH",
27722778
Self::UnknownFailure => "UNKNOWN_FAILURE",
27732779
Self::PublicValuesMismatch => "PUBLIC_VALUES_MISMATCH",
2780+
Self::VerificationFailure => "VERIFICATION_FAILURE",
2781+
Self::ProvingFailure => "PROVING_FAILURE",
27742782
}
27752783
}
27762784
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -2783,6 +2791,8 @@ impl ProofRequestError {
27832791
"VERIFICATION_KEY_MISMATCH" => Some(Self::VerificationKeyMismatch),
27842792
"UNKNOWN_FAILURE" => Some(Self::UnknownFailure),
27852793
"PUBLIC_VALUES_MISMATCH" => Some(Self::PublicValuesMismatch),
2794+
"VERIFICATION_FAILURE" => Some(Self::VerificationFailure),
2795+
"PROVING_FAILURE" => Some(Self::ProvingFailure),
27862796
_ => None,
27872797
}
27882798
}

proto/types.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,4 +1767,10 @@ 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;
17701776
}

0 commit comments

Comments
 (0)