Skip to content

Commit b9890a2

Browse files
committed
Support various OID4* format aliases.
1 parent c30c05a commit b9890a2

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# bedrock-vc-delivery ChangeLog
22

3+
## 6.6.0 - 2025-mm-dd
4+
5+
### Added
6+
- Support `jwt_vc_json` and `jwt_vp_json` aliases for `jwt_vc_json-ld`
7+
and `jwt_vp` for OID4*.
8+
- Support `di_vc` and `di_vp` aliases for `ldp_vc` and `ldp_vp` for OID4*.
9+
310
## 6.5.0 - 2025-01-28
411

512
### Added

lib/helpers.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ function _getEnvelope({envelope, format}) {
243243
const isString = typeof envelope === 'string';
244244
if(isString) {
245245
// supported formats
246-
if(format === 'application/jwt' || format === 'jwt_vc_json-ld') {
246+
if(format === 'application/jwt' ||
247+
format === 'jwt_vc_json-ld' || format === 'jwt_vc_json') {
247248
format = 'application/jwt';
248249
}
249250
} else {

lib/oid4/oid4vp.js

+7
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ function _createClientMetaData() {
296296
jwt_vp_json: {
297297
alg: ['EdDSA', 'Ed25519', 'ES256', 'ES384']
298298
},
299+
di_vp: {
300+
proof_type: [
301+
'ecdsa-rdfc-2019',
302+
'eddsa-rdfc-2022',
303+
'Ed25519Signature2020'
304+
]
305+
},
299306
ldp_vp: {
300307
proof_type: [
301308
'ecdsa-rdfc-2019',

schemas/bedrock-vc-workflow.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const expectedCredentialRequest = {
181181
credential_definition: credentialDefinition,
182182
format: {
183183
type: 'string',
184-
enum: ['ldp_vc', 'jwt_vc_json-ld']
184+
enum: ['di_vc', 'ldp_vc', 'jwt_vc_json-ld', 'jwt_vc_json']
185185
}
186186
}
187187
};
@@ -509,7 +509,7 @@ const openIdCredentialRequest = {
509509
credential_definition: credentialDefinition,
510510
format: {
511511
type: 'string',
512-
enum: ['ldp_vc', 'jwt_vc_json-ld']
512+
enum: ['di_vc', 'ldp_vc', 'jwt_vc_json-ld', 'jwt_vc_json']
513513
},
514514
did: {
515515
type: 'string'

0 commit comments

Comments
 (0)