Validates execution, rollback, and acknowledgment contract receipts in security workflows. Reuse to verify signed cryptographic action receipts.
// Source: https://github.com/backbay-labs/clawdstrike | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Shared response lifecycle receipt validators used by execution,
//! rollback, and acknowledgement contract checks.
use super::super::*;
pub(crate) fn verify_response_lifecycle_receipt_contract(
execution: &EndpointResponseExecutionReport,
receipt: &SignedReceipt,
label: &str,
) -> Result<(), (StatusCode, String)> {
require_proof_receipt_decision_str(
receipt,
label,
&["decision", "action"],
execution.action.as_str(),
)?;
require_proof_receipt_decision_str(
receipt,
label,
&["decision", "rollback
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key