identity: SD-JWT interoperability measured in both directions with @sd-jwt/core 0.23.0 and jose 6.2.12 (ML-DSA-65 included), nested _sd_alg refused, the SD-JWT VC profile (draft-19, dc+sd-jwt, vct, Token Status List offline); conformance: SD-JWT and SD-JWT VC enrolled (213 rules, 13 verifiers, 553 vectors)

This commit is contained in:
Aere Network committed 2026-10-18 11:07:27 +03:00
1 parent fab02f7952
commit e1bb4e25d8
109 files changed
+9823 -175

No files matched your search

+240 -5
View File
@@ -1397,14 +1397,249 @@
}
],
"marked": "by a marker on every check"
},
"sdjwt": {
"artifacts": [
"sdjwt-presentation"
],
"rules": [
{
"id": "sdjwt.form",
"source": "form",
"level": "integrity",
"sites": 7,
"says": "the compact serialization (issuer-signed JWT ~ disclosures ~ key binding) and every JWS part can be read: three parts, canonical base64url, JSON objects, no empty disclosure; the verifier clock is a time"
},
{
"id": "sdjwt.alg",
"source": "alg",
"level": "authenticity",
"sites": 1,
"says": "the JWS algorithm is one the verifier accepts (ES256, EdDSA, ML-DSA-65); never none"
},
{
"id": "sdjwt.typ",
"source": "typ",
"level": "integrity",
"sites": 1,
"says": "the issuer-signed JWT carries the explicit type the verifier expects (any ...+sd-jwt by default; RFC 9901 Section 9.11) and the key binding JWT kb+jwt"
},
{
"id": "sdjwt.crit",
"source": "crit",
"level": "integrity",
"sites": 1,
"says": "no critical header parameter (crit) is present: none is understood"
},
{
"id": "sdjwt.key",
"source": "key",
"level": "authenticity",
"sites": 3,
"says": "the key given is a public EC, OKP or AKP JWK that can be read, and of the algorithm the JWS declares (no algorithm confusion)"
},
{
"id": "sdjwt.signature",
"source": "signature",
"level": "authenticity",
"sites": 1,
"says": "the JWS signature verifies with that key: the issuer-signed JWT with the issuer key the verifier chose, the key binding JWT with cnf.jwk"
},
{
"id": "sdjwt.issuer",
"source": "issuer",
"level": "authenticity",
"sites": 1,
"says": "iss is the issuer the verifier expects, when it names one"
},
{
"id": "sdjwt.sd-alg",
"source": "sd-alg",
"level": "integrity",
"sites": 2,
"says": "_sd_alg is sha-256 (or absent), and appears only at the top level of the payload (RFC 9901 Section 4.1.1)"
},
{
"id": "sdjwt.disclosure-form",
"source": "disclosure-form",
"level": "integrity",
"sites": 5,
"says": "every disclosure is base64url JSON of [salt, name, value] for an object property or [salt, value] for an array element, and _sd is a list of strings"
},
{
"id": "sdjwt.disclosure-twice",
"source": "disclosure-twice",
"level": "integrity",
"sites": 1,
"says": "no disclosure is given twice"
},
{
"id": "sdjwt.digest-twice",
"source": "digest-twice",
"level": "integrity",
"sites": 1,
"says": "no digest appears more than once in the issuer-signed payload, directly or through disclosures (Section 7.1 step 4)"
},
{
"id": "sdjwt.disclosure-name",
"source": "disclosure-name",
"level": "integrity",
"sites": 2,
"says": "no disclosure names _sd, ..., _sd_alg or __proto__, and no claim is named __proto__"
},
{
"id": "sdjwt.claim-conflict",
"source": "claim-conflict",
"level": "integrity",
"sites": 1,
"says": "a disclosed claim does not already exist at its level (Section 7.1 step 3.c.ii.3)"
},
{
"id": "sdjwt.unreferenced",
"source": "unreferenced",
"level": "integrity",
"sites": 1,
"says": "every disclosure given is referenced by a digest of the issuer-signed JWT (Section 7.1 step 5)"
},
{
"id": "sdjwt.time",
"source": "time",
"level": "integrity",
"sites": 5,
"says": "exp, nbf and iat are numbers; exp is present when required and has not passed on the verifier clock (no allowance); nbf and iat are not ahead of it by more than the clock skew"
},
{
"id": "sdjwt.kb-context",
"source": "kb-context",
"level": "integrity",
"sites": 1,
"says": "the verifier gave its audience and nonce when a key binding JWT is present or required (Section 7.3 step 5.f)"
},
{
"id": "sdjwt.kb-required",
"source": "kb-required",
"level": "integrity",
"sites": 1,
"says": "a key binding JWT is present when the verifier requires one"
},
{
"id": "sdjwt.kb-cnf",
"source": "kb-cnf",
"level": "integrity",
"sites": 1,
"says": "the issuer-signed JWT names the holder key (cnf.jwk) when a key binding JWT is given"
},
{
"id": "sdjwt.kb-claims",
"source": "kb-claims",
"level": "integrity",
"sites": 1,
"says": "the key binding JWT carries aud, nonce, iat and sd_hash"
},
{
"id": "sdjwt.kb-audience",
"source": "kb-audience",
"level": "integrity",
"sites": 1,
"says": "the key binding JWT was made for this verifier (aud)"
},
{
"id": "sdjwt.kb-nonce",
"source": "kb-nonce",
"level": "integrity",
"sites": 1,
"says": "the key binding JWT carries the nonce this verifier gave"
},
{
"id": "sdjwt.kb-freshness",
"source": "kb-freshness",
"level": "integrity",
"sites": 3,
"says": "the key binding JWT was made within the allowed age of the verifier clock, and its exp and nbf, if it carries them, hold"
},
{
"id": "sdjwt.kb-sd-hash",
"source": "kb-sd-hash",
"level": "integrity",
"sites": 1,
"says": "sd_hash is the hash of exactly what was presented (the issuer-signed JWT and the disclosures shown)"
}
],
"marked": "by a marker on every check"
},
"sdjwt-vc": {
"artifacts": [
"sdjwt-vc-presentation"
],
"rules": [
{
"id": "sdjwtvc.vct-expected",
"source": "vct-expected",
"level": "integrity",
"sites": 1,
"says": "the verifier names the credential type(s) it expects (expectedVct)"
},
{
"id": "sdjwtvc.vct",
"source": "vct",
"level": "integrity",
"sites": 1,
"says": "the payload carries vct, a non-empty string (draft-ietf-oauth-sd-jwt-vc Section 2.2.2.3)"
},
{
"id": "sdjwtvc.vct-mismatch",
"source": "vct-mismatch",
"level": "integrity",
"sites": 1,
"says": "vct is one of the types the verifier expects"
},
{
"id": "sdjwtvc.disclosed-protected",
"source": "disclosed-protected",
"level": "integrity",
"sites": 1,
"says": "none of iss, nbf, exp, cnf, vct, vct#integrity, aka_vcts, status was selectively disclosed (Section 2.2.2.3)"
},
{
"id": "sdjwtvc.form",
"source": "form",
"level": "integrity",
"sites": 3,
"says": "vct#integrity, if present, is a string; status is an object, and status.status_list carries a non-negative integer idx and a uri"
},
{
"id": "sdjwtvc.status-list",
"source": "status-list",
"level": "integrity",
"sites": 9,
"says": "the Status List Token handed to the verifier can be read for the uri the credential names: signed with the key given, typ statuslist+jwt, sub equal to that uri, iat present and not ahead of the clock, exp not passed, status_list with bits 1, 2, 4 or 8 and an lst that inflates"
},
{
"id": "sdjwtvc.status-index",
"source": "status-index",
"level": "integrity",
"sites": 1,
"says": "the index the credential names is inside the list"
},
{
"id": "sdjwtvc.status-revoked",
"source": "status-revoked",
"level": "integrity",
"sites": 1,
"says": "the status at that index is 0 (VALID); 1 INVALID, 2 SUSPENDED and any other value refuse"
},
{
"id": "sdjwtvc.status-unjudged",
"source": "status-unjudged",
"level": "integrity",
"sites": 1,
"says": "a status the credential names was judged, unless the verifier waived it (requireStatus false), in which case the verdict is PARTIAL"
}
],
"marked": "by a marker on every check"
}
},
"notEnrolled": [
{
"verifier": "identity: SD-JWT (RFC 9901)",
"refusalSites": 26,
"why": "its refusals carry texts, not rule ids (counted: the calls of its refusal helper); it is checked by its own probe, on the RFC 9901 vectors"
},
{
"verifier": "identity: Travel Rule",
"refusalSites": 20,