UNPKG

@sphereon/oid4vci-common

Version:

OpenID 4 Verifiable Credential Issuance Common Types

20 lines (15 loc) 734 B
/** * Experimental support not following the VCI spec to have the holder actually (re)sign the issued credential and return it to the issuer */ export const EXPERIMENTAL_SUBJECT_PROOF_MODE_ENABLED = process.env.EXPERIMENTAL_SUBJECT_PROOF_MODE?.trim().toLowerCase() === 'true'; export type SubjectProofMode = 'proof_chain' | 'proof_set' | 'proof_replace'; export type SubjectProofNotificationEventsSupported = | 'credential_accepted_holder_signed' | 'credential_deleted_holder_signed' | 'credential_accepted'; export interface ExperimentalSubjectIssuance { credential_subject_issuance?: { subject_proof_mode: SubjectProofMode; notification_events_supported: Array<SubjectProofNotificationEventsSupported>; }; }