UNPKG

@sphereon/ssi-types

Version:

SSI Common Types

16 lines 732 B
import { CredentialFormat, PresentationFormat } from '../types'; export type CredentialEncoding = 'json' | 'jwt' | 'cbor'; export type IssuerAttributeName = 'iss' | 'issuer' | 'issuerAuth'; export type SubjectAttributeName = 'subject' | 'id' | 'deviceMac' | 'TODO'; export type TypeAttributeName = 'type' | 'vct'; export type DataModel = 'W3C_VCDM' | 'IETF_SD_JWT' | 'ISO_MSO_MDOC'; export interface CredentialConstraint { credentialFormat: CredentialFormat; presentationFormat: PresentationFormat; maxSignatures: number; encoding: CredentialEncoding; dataModel: DataModel; typeAttribute?: TypeAttributeName; issuerAttributes: [IssuerAttributeName]; } //# sourceMappingURL=credential-constraints.d.ts.map