@@ -64,14 +64,14 @@ export const EHIC_MSO_MDOC: MsoMdocAttestation = {
6464 doctype : 'eu.europa.ec.eudi.ehic.1' ,
6565 namespace : 'eu.europa.ec.eudi.ehic.1' ,
6666 attributePath : ( attribute : DataElement ) => { return msoMdocAttributePath ( attribute , 'eu.europa.ec.eudi.ehic.1' ) } ,
67- claimPath : ( attribute : DataElement ) => { return { namespace : 'eu.europa.ec.eudi.ehic.1' , claim_name : attribute . identifier } }
67+ claimQuery : ( attribute : DataElement ) => { return msoMdocClaimQuery ( 'eu.europa.ec.eudi.ehic.1' , attribute . identifier ) }
6868}
6969export const EHIC_SD_JWT_VC : SdJwtVcAttestation = {
7070 format : AttestationFormat . SD_JWT_VC ,
7171 attestationDef : EHIC_ATTESTATION ,
7272 vct : 'urn:eu.europa.ec.eudi:ehic:1' ,
7373 attributePath : ( attribute : DataElement ) => { return `$.${ sdJwtVcAttributePath ( attribute , AttestationType . EHIC ) } ` } ,
74- claimPath : ( attribute : DataElement ) => { return { path : sdJwtVcAttributePath ( attribute , AttestationType . EHIC ) . split ( '.' ) } }
74+ claimQuery : ( attribute : DataElement ) => { return { path : sdJwtVcAttributePath ( attribute , AttestationType . EHIC ) . split ( '.' ) } }
7575}
7676
7777/*---- PDA1 INSTANCES PER FORMAT ----*/
@@ -81,14 +81,14 @@ export const PDA1_MSO_MDOC: MsoMdocAttestation = {
8181 doctype : 'eu.europa.ec.eudi.pda1.1' ,
8282 namespace : 'eu.europa.ec.eudi.pda1.1' ,
8383 attributePath : ( attribute : DataElement ) => { return msoMdocAttributePath ( attribute , 'eu.europa.ec.eudi.pda1.1' ) } ,
84- claimPath : ( attribute : DataElement ) => { return { namespace : 'eu.europa.ec.eudi.pda1.1' , claim_name : attribute . identifier } }
84+ claimQuery : ( attribute : DataElement ) => { return msoMdocClaimQuery ( 'eu.europa.ec.eudi.pda1.1' , attribute . identifier ) }
8585}
8686export const PDA1_SD_JWT_VC : SdJwtVcAttestation = {
8787 format : AttestationFormat . SD_JWT_VC ,
8888 attestationDef : PDA1_ATTESTATION ,
8989 vct : 'urn:eu.europa.ec.eudi:pda1:1' ,
9090 attributePath : ( attribute : DataElement ) => { return `$.${ sdJwtVcAttributePath ( attribute , AttestationType . PDA1 ) } ` } ,
91- claimPath : ( attribute : DataElement ) => { return { path : sdJwtVcAttributePath ( attribute , AttestationType . PDA1 ) . split ( '.' ) } }
91+ claimQuery : ( attribute : DataElement ) => { return { path : sdJwtVcAttributePath ( attribute , AttestationType . PDA1 ) . split ( '.' ) } }
9292}
9393
9494function msoMdocAttributePath ( attribute : DataElement , namespace : string ) : string {
0 commit comments