File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 type OID4VPMDLCredentialOptions ,
77 type OID4VPMdocCredentialOptionsFull ,
88 type OID4VPMdocCredentialOptionsSimple ,
9- type OID4VPSDJWTCredentialOptions ,
9+ type OID4VPSDJWTVCCredentialOptions ,
1010 verifyPresentationResponse ,
1111} from "../packages/server/src/index.ts" ;
1212
@@ -73,14 +73,14 @@ app.get("/options", async (ctx) => {
7373 } ;
7474
7575 // A straightforward European PID SD-JWT-VC request
76- const sdjwtvcRequest : OID4VPSDJWTCredentialOptions = {
76+ const sdjwtvcRequest : OID4VPSDJWTVCCredentialOptions = {
7777 format : "sd-jwt-vc" ,
7878 desiredClaims : [ "family_name" , "given_name" ] ,
7979 acceptedVCTValues : [ "urn:eu.europa.ec.eudi:pid:1" , "urn:eudi:pid:1" ] ,
8080 } ;
8181
8282 // A more complex SD-JWT-VC request with a mix of single-path and multi-path claims
83- const sdjwtvcRequestComplex : OID4VPSDJWTCredentialOptions = {
83+ const sdjwtvcRequestComplex : OID4VPSDJWTVCCredentialOptions = {
8484 format : "sd-jwt-vc" ,
8585 desiredClaims : [
8686 "given_name" ,
Original file line number Diff line number Diff line change 66 type OID4VPMDLCredentialOptions ,
77 type OID4VPMdocCredentialOptionsFull ,
88 type OID4VPMdocCredentialOptionsSimple ,
9- type OID4VPSDJWTCredentialOptions ,
9+ type OID4VPSDJWTVCCredentialOptions ,
1010} from './protocols/oid4vp/generateOID4VPRequest.ts' ;
1111
1212/**
@@ -61,7 +61,7 @@ export type PresentationRequestOptions = {
6161 | OID4VPMdocCredentialOptionsSimple
6262 | OID4VPMdocCredentialOptionsFull
6363 | OID4VPMDLCredentialOptions
64- | OID4VPSDJWTCredentialOptions ;
64+ | OID4VPSDJWTVCCredentialOptions ;
6565 /** AES-GCM key material needed to symmetrically encrypt and decrypt information in the nonce. Must be 32 bytes */
6666 serverAESKeySecret : Uint8Array_ ;
6767 /** For how long in **seconds** the presentation ceremony should be valid. Defaults to 300s */
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export type {
2424 OID4VPMDLCredentialOptions ,
2525 OID4VPMdocCredentialOptionsFull ,
2626 OID4VPMdocCredentialOptionsSimple ,
27- OID4VPSDJWTCredentialOptions ,
27+ OID4VPSDJWTVCCredentialOptions ,
2828} from './protocols/oid4vp/generateOID4VPRequest.ts' ;
2929
3030export type { DocumentTypeMDLv1 , Identifier , NamespaceMDLv1 } from './formats/mdoc/types.ts' ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export async function generateOID4VPRequest({
2626 | OID4VPMDLCredentialOptions
2727 | OID4VPMdocCredentialOptionsSimple
2828 | OID4VPMdocCredentialOptionsFull
29- | OID4VPSDJWTCredentialOptions ;
29+ | OID4VPSDJWTVCCredentialOptions ;
3030 serverAESKeySecret : Uint8Array_ ;
3131 presentationLifetime : number ;
3232 encryptResponse : boolean ;
@@ -178,7 +178,7 @@ export type OID4VPMdocCredentialOptionsFull = {
178178/**
179179 * Supports SD-JWT-VC-based credentials
180180 */
181- export type OID4VPSDJWTCredentialOptions = {
181+ export type OID4VPSDJWTVCCredentialOptions = {
182182 format : 'sd-jwt-vc' ;
183183 desiredClaims : ( string | string [ ] ) [ ] ;
184184 acceptedVCTValues ?: string [ ] ;
You can’t perform that action at this time.
0 commit comments