{
  "spec": "RSW-0003 revision 0.01",
  "generated": "2026-11-23",
  "note": "Expected acceptance states for the strict rsw/1 profile. Error codes are categories; identical diagnostic order is not required (RSW-0003 section 05). TEST ONLY - NOT FOR PRODUCTION - this public test key does not belong to Pablo Murad.",
  "public_key": "ed25519:AOQQPP7TZYIL4HLQ3UMOOS6ATFT6JVRQTOSQ2XY53SDGIESVGG4A",
  "vectors": [
    {
      "id": "p1",
      "file": "cartridges/RSW-0003-exemplo.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:a5ff1a294b1c1a1b7dadc55acca226d164acbf74e4d5da9552635f17a7b47d26",
      "expected_state": "VERIFIED",
      "expected_error": null,
      "description": "Signed cartridge (the RSW-0003 appendix A example)."
    },
    {
      "id": "p2",
      "file": "cartridges/p2-reformatted-manifest.rsw.png",
      "bytes": 1168,
      "h_png": "sha256:5fd08fc3b157ad69a03f635e186c0421664eec376e8de64b7c058e76d5c662e5",
      "expected_state": "VERIFIED",
      "expected_error": null,
      "description": "Readable manifest: other member order, equivalent escapes (\\/, \\u003c, surrogate pair). Same C, same signature, different H_png."
    },
    {
      "id": "p3",
      "file": "cartridges/p3-unsigned.rsw.png",
      "bytes": 792,
      "h_png": "sha256:1571ee0d8d5679a922088d1220de2c636073d41c5d0aa152e4b137e5d378da49",
      "expected_state": "UNSIGNED",
      "expected_error": null,
      "description": "No public_key and no signature.sig."
    },
    {
      "id": "n1",
      "file": "cartridges/n1-altered-manifest.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:a40d4875106d8b8540cff6a5682fae5203e1b0d3a45fabe03a895432f0ce043a",
      "expected_state": "INVALID",
      "expected_error": "SIGNATURE_MISMATCH",
      "description": "title changed after signing; signature.sig not updated."
    },
    {
      "id": "n2",
      "file": "cartridges/n2-altered-resource.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:374bb83daf59b4c8d40535a05bc2cc2849d553d492af641cbc484bd45bd36964",
      "expected_state": "INVALID",
      "expected_error": "INTEGRITY_MISMATCH",
      "description": "index.md changed after signing; ZIP CRC-32 recomputed (ZIP is valid), files hash not updated."
    },
    {
      "id": "n3",
      "file": "cartridges/n3-altered-signature.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:1bffe77c8f969414ffa74a0ac2bc9a5100a5119c62276e6246cbe3d998be9e52",
      "expected_state": "INVALID",
      "expected_error": "SIGNATURE_MISMATCH",
      "description": "Lowest bit of S flipped (S stays below L)."
    },
    {
      "id": "n4",
      "file": "cartridges/n4-truncated-signature.rsw.png",
      "bytes": 1033,
      "h_png": "sha256:d152041d079b81de040610df317203d4bf4f47ecc473eb7a1a9c8f1ac32ed05d",
      "expected_state": "INVALID",
      "expected_error": "INVALID_SIGNATURE_ENCODING",
      "description": "signature.sig truncated to 63 bytes."
    },
    {
      "id": "n5",
      "file": "cartridges/n5-degenerate-key.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:d6b9edc9499ee7ac78baa1957bc6af6ec33cdb759822ad78886ebaf1edc12377",
      "expected_state": "INVALID",
      "expected_error": "INVALID_PUBLIC_KEY",
      "description": "public_key is the identity point; R = identity, S = 0. The bare equation holds for any message, which is why RSW-0003 requires A != O and [L]A = O."
    },
    {
      "id": "n6",
      "file": "cartridges/n6-noncanonical-base32.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:694cf0641de27c0b2e928f76936778bccec4293b61f0005c3efc979071d7985e",
      "expected_state": "INVALID",
      "expected_error": "INVALID_PUBLIC_KEY",
      "description": "public_key ends in B (non-zero residual bits). The signature over this exact C is valid; only the encoding is wrong."
    },
    {
      "id": "n7",
      "file": "cartridges/n7-s-out-of-range.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:d1f3476b9ea97603912a6f34357429278977c27ea968c20a83879f9ac32ac790",
      "expected_state": "INVALID",
      "expected_error": "INVALID_SIGNATURE_ENCODING",
      "description": "S replaced by S + L (non-canonical scalar)."
    },
    {
      "id": "n8",
      "file": "cartridges/n8-wrong-domain.rsw.png",
      "bytes": 1034,
      "h_png": "sha256:17f83c3cd97317306a4ba74a5218a443b488fa2deaa49caeac27e8dd475479c5",
      "expected_state": "INVALID",
      "expected_error": "SIGNATURE_MISMATCH",
      "description": "Signed over \"RSW/1:hosting-index\" || 0x00 || C (the RSW-0006 index domain) instead of the cartridge-manifest domain."
    }
  ]
}
