{
    "standard": "ORS-MK/1.0",
    "record_code": {
        "type": "string",
        "pattern": "^[A-Z]{3,4}[0-9]{2,3}-[0-9]{6}-[0-9]{6}$",
        "note": "FAMILY-YYMMDD-NNNNNN; issued once, never reissued; no second numbering"
    },
    "nation.json": {
        "required": [
            "standard",
            "nation",
            "issuer_code",
            "issuer_code_assigned_by_icao",
            "register",
            "verify",
            "record_code_format",
            "keys",
            "licence"
        ],
        "keys": {
            "register_signing": {
                "alg": "RSA-SHA256",
                "pem": "PEM public key"
            },
            "csca": "optional, X.509 PEM"
        },
        "signature": "base64 RSA-SHA256 over sha256(JSON of document)"
    },
    "verify_response": {
        "code": "Record Code",
        "family": "FAMILY",
        "family_label": "string",
        "date": "YYYY-MM-DD",
        "class": "visibility class or kind",
        "standing": "ON THE REGISTER | VALID | EXPIRED | SUSPENDED | REVOKED | REPLACED | LOST | STOLEN | DECEASED | ..."
    },
    "nfc_payload": {
        "data": [
            "v",
            "iss",
            "id",
            "card",
            "name",
            "dob",
            "exp",
            "end",
            "mrz",
            "verify",
            "at"
        ],
        "sig": "base64 RSA-SHA256 over sha256(JSON of data)",
        "key": "URL of the issuer's public key"
    },
    "passport_chip": {
        "DG1": "MRZ string",
        "DG2_jpeg_base64": "face",
        "SOD": [
            "version",
            "hashAlg",
            "dataGroupHashes",
            "documentNumber",
            "issuer",
            "signedAt"
        ],
        "SOD_signature": "base64, Document Signer",
        "DS_certificate": "X.509 PEM chaining to the CSCA"
    },
    "gazette_entry": {
        "number": "integer",
        "code": "GZT-family Record Code with instance = number",
        "0": "title",
        "1": "date",
        "2": "office",
        "3": "category",
        "4": "class",
        "rests_on": "one or more founding instruments",
        "5": "text"
    }
}