forked from eu-digital-identity-wallet/eudi-web-verifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAttestations.ts
More file actions
22 lines (19 loc) · 795 Bytes
/
Attestations.ts
File metadata and controls
22 lines (19 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {AttestationDefinition, DataElement} from "@core/models/attestation/AttestationDefinition";
import {AttestationFormat} from "@core/models/attestation/AttestationFormat";
import { ClaimsQuery } from "../dcql/DCQL";
export type Attestation = MsoMdocAttestation | SdJwtVcAttestation;
export type MsoMdocAttestation = {
format: AttestationFormat.MSO_MDOC,
doctype: string,
namespace: string,
attestationDef: AttestationDefinition,
attributePath: (attribute: DataElement) => string,
claimQuery: (attribute: DataElement) => ClaimsQuery,
}
export type SdJwtVcAttestation = {
format: AttestationFormat.SD_JWT_VC,
vct: string,
attestationDef: AttestationDefinition
attributePath: (attribute: DataElement) => string,
claimQuery: (attribute: DataElement) => ClaimsQuery,
}