Skip to content

Commit

Permalink
Add SD-JWT format (#12)
Browse files Browse the repository at this point in the history
Include SD-JWT as a supported format
  • Loading branch information
kimdhamilton authored Dec 30, 2024
2 parents ee5aae2 + 7f72d5b commit 4a15817
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions schemas/presentation-definition-claim-format-designations.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@
},
"mso_mdoc": {
"type": "object"
},
"^sd_jwt$": {
"type": "object",
"additionalProperties": false,
"properties": {
"alg": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"definitions": {
"format": {
"type": "string",
"enum": ["jwt", "jwt_vc", "jwt_vp", "ldp", "ldp_vc", "ldp_vp", "mso_mdoc", "ac_vc", "ac_vp"]
"enum": ["jwt", "jwt_vc", "jwt_vp", "ldp", "ldp_vc", "ldp_vp", "mso_mdoc", "ac_vc", "ac_vp", "sd_jwt"]
}
}
}
6 changes: 5 additions & 1 deletion spec/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Maintainers reserve the right to reject, remove, or delay acceptance of PRs.
|`ac_vc`|"AnonCreds VC"|This format is for Verifiable Credentials using AnonCreds. AnonCreds is a VC format that adds important privacy-protecting ZKP (zero-knowledge proof) capabilities to the core VC assurances.|See [[ref:AnonCreds]]|n/a|
|`ac_vp`|"AnonCreds VP"|This format is for Verifiable Presentations using AnonCreds. AnonCreds is a VC format that adds important privacy-protecting ZKP (zero-knowledge proof) capabilities to the core VC assurances.|See [[ref:AnonCreds]]|n/a|
|`mso_mdoc`|"mDoc"|The format is defined by ISO/IEC 18013-5:2021 [[ref:ISO.18013-5]] whcih defines a mobile driving license (mDL) Credential in the mobile document (mdoc) format. Although ISO/IEC 18013-5:2021 [[ref:ISO.18013-5]] is specific to mobile driving licenses (mDLs), the Credential format can be utilized with any type of Credential (or mdoc document types).|See [[ref:ISO.18013-5]], [[ref:ISO.18013-7]]|n/a|
|`sd_jwt`|"SD-JWT"|The format is a Selective Disclosure JSON Web Token (SD-JWT). It allows for selective disclosure of claims, meaning that only a subset of the claims contained within the JWT is disclosed during the presentation, enhancing privacy. This is achieved by using cryptographic mechanisms that enable the verifier to confirm the integrity and authenticity of the disclosed claims without needing to see the entire set of claims.|See [[ref:SD-JWT]]|n/a|

## JSON Schemas

Expand Down Expand Up @@ -120,4 +121,7 @@ Maintainers reserve the right to reject, remove, or delay acceptance of PRs.
~ [Verifiable Credential Data Integrity 1.0](https://www.w3.org/TR/vc-data-integrity/). Securing the Integrity of Verifiable Credential Data. Manu Sporny, Dave Longley, Greg Bernstein, Dmitri Zagidulin, Sebastian Crane. 14 June 2024. Status: W3C Candidate Recommendation Draft.

[[def:AnonCreds]]
~ [AnonCreds v1.0 Draft](https://hyperledger.github.io/anoncreds-spec/). Stephen Curran, Artur Philipp, Hakan Yildiz, Sam Curren, Victom Martinez Jurado, Aritra Bhaduri, Artem Ivanov. Status: v1.0 Draft.
~ [AnonCreds v1.0 Draft](https://hyperledger.github.io/anoncreds-spec/). Stephen Curran, Artur Philipp, Hakan Yildiz, Sam Curren, Victom Martinez Jurado, Aritra Bhaduri, Artem Ivanov. Status: v1.0 Draft.

[[def:SD-JWT]]
~ [Selective Disclosure for JWTs (SD-JWT)](https://datatracker.ietf.org/doc/draft-ietf-oauth-selective-disclosure-jwt/). Daniel Fett, Kristina Yasuda, Brian Campbell. Status: Internet-Draft.

0 comments on commit 4a15817

Please sign in to comment.