INNER CODE UNIT · Rust

diff_and_reproduction_chain_are_exposed

logannye/rosalind · crates/receipt-wasm/src/lib.rs:415

    fn diff_and_reproduction_chain_are_exposed() {
        let first = run_receipt("1000");
        let second = run_receipt("500");
        let diff = diff_receipts(&first.to_canonical_json(), &second.to_canonical_json());
        assert!(diff.contains("\"claims_identical\":false"));
        assert!(diff.contains("\"key\":\"max_depth\""));

        let certificate = ReproReceipt::build(
            &first.content_hash(),
            "features",
            "REPRODUCED",
            1,
            &[ReproOutput {
                role: "output[0]".to_string(),
                recorded_blake3: "same".to_string(),
                observed_blake3: "same".to_string(),
                matched: true,
            }],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…