{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eudr-dev/json-schema/eudr-dev-signed-receipt-schema.json",
  "title": "SignedReceipt",
  "description": "ed25519-signed Annex II envelope. Verifiable offline — see /docs/audit/verify-offline.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eudr-dev-openapi.json#/components/schemas/SignedReceipt",
  "type": "object",
  "required": [
    "payload",
    "cid",
    "signature_b64",
    "pubkey_b32"
  ],
  "properties": {
    "payload": {
      "type": "object",
      "description": "Canonical Annex II JSON."
    },
    "cid": {
      "type": "string",
      "description": "CIDv1 of the canonical payload (BLAKE3 + multibase 'b' base32)."
    },
    "signature_b64": {
      "type": "string",
      "description": "ed25519 signature over the CID bytes, base64-encoded."
    },
    "pubkey_b32": {
      "type": "string"
    },
    "did": {
      "type": "string"
    },
    "issued_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}