-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: After dropping DB agent would throw exception as we removed the …
…data source
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { CredentialFormat, PresentationFormat } from '../types' | ||
|
||
export type CredentialEncoding = 'json' /*includes json-ld*/ | '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 // optional since mdocs use namespace maps without an explicit type attribute | ||
issuerAttributes: [IssuerAttributeName] | ||
} |