pub fn verify_conformance_seal(
fused_judgment: &NeutrosophicJudgment,
) -> Result<bool>Expand description
Verifies a Conformance Seal against a fused judgment
This function extracts the necessary components from a fused judgment and regenerates the Conformance Seal to verify it matches the stored seal.
§Arguments
fused_judgment- The fused judgment containing the seal to verify
§Returns
true if the seal is valid, false otherwise
§Errors
Returns ConformanceError if the judgment is malformed or missing required data
§Example
use opentrustprotocol::{NeutrosophicJudgment, verify_conformance_seal};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Assuming fused_judgment was created with a conformance seal
let fused_judgment = NeutrosophicJudgment::new(0.8, 0.2, 0.0, vec![
("otp-cawa-v1.1".to_string(), "2023-01-01T00:00:00Z".to_string())
])?;
let is_valid = verify_conformance_seal(&fused_judgment)?;
if is_valid {
println!("✅ Judgment is mathematically proven conformant!");
} else {
println!("❌ Judgment failed conformance verification");
}
Ok(())
}