@triveria/wallet / Exports / CredentialDraftMetadata
Interface: CredentialDraftMetadata
Accompanying information about the verifiable credential draft - schema, type, format etc.
Table of contents
Properties
- contexts
- credentialSchema
- credentialSchemaType
- expirationDate
- format
- id
- name
- renderMethod
- type
- vcdmDescription
- vcdmName
- vcdmVersion
Properties
contexts
• Optional contexts: any[]
Context URLs or inline context objects. When the first item is not a base VC context (https://www.w3.org/2018/credentials/v1 or https://www.w3.org/ns/credentials/v2), the base context of vcdmVersion is put in front of them.
Defined in
credentialSchema
• Optional credentialSchema: string
Defined in
credentialSchemaType
• Optional credentialSchemaType: CredentialSchemaType
Defined in
expirationDate
• Optional expirationDate: string
Defined in
format
• format: CredentialFormat
Defined in
id
• id: string
When empty, a urn:uuid:<UUIDv7> is generated.
Defined in
name
• name: string
Defined in
renderMethod
• Optional renderMethod: { [key: string]: any; }[]
The credential's VCDM renderMethod entries (W3C VCDM only): UNTP RenderTemplate2024 (type, name, mediaQuery, template, url, mediaType text/html or text/plain, digestMultibase, nothing else, and a template or an https url with a digestMultibase) or W3C TemplateRenderMethod (renderSuite html, card or nfc, renderProperty JSON pointers, template a data: URL or an https URL, with a digestMultibase when remote). Other types are kept as given. Replaces the draft's render methods; an empty array removes them.
Defined in
type
• type: string
Defined in
vcdmDescription
• Optional vcdmDescription: string
Defined in
vcdmName
• Optional vcdmName: string
Defined in
vcdmVersion
• Optional vcdmVersion: VcdmVersion