@triveria/wallet / Exports / Credential
Interface: Credential
Export
Credential
Indexable
▪ [key: string
]: any
Table of contents
Properties
- @context
- _sd
- _sd_alg
- credentialSchema
- credentialStatus
- credentialSubject
- evidence
- expirationDate
- holder
- id
- issuanceDate
- issued
- issuer
- proof
- refreshService
- termsOfUse
- type
- validFrom
- validUntil
Properties
@context
• Optional
@context: string
[]
The value of the
Context
property MUST be an ordered set where the first item is a URL with the value https://www.w3.org/ns/credentials/v2. Subsequent items in the array MUST express context information and be composed of any combination of URLs or objects. It is RECOMMENDED that each URL in the
Context
be one which, if dereferenced, results in a document containing machine-readable information about the @context. https://www.w3.org/TR/vc-data-model-2.0/#contexts
Memberof
Credential
Defined in
_sd
• Optional
_sd: string
[]
Array of specific VC field disclosures
Memberof
Credential
Defined in
_sd_alg
• Optional
_sd_alg: string
Algorithm used for hashing disclosure digests
Memberof
Credential
Defined in
credentialSchema
• Optional
credentialSchema: CredentialSchema
Memberof
Credential
Defined in
credentialStatus
• Optional
credentialStatus: CredentialStatus
Memberof
Credential
Defined in
credentialSubject
• Optional
credentialSubject: CredentialSubject
Memberof
Credential
Defined in
evidence
• Optional
evidence: EvidenceItem
[]
Memberof
Credential
Defined in
expirationDate
• Optional
expirationDate: string
EBSI specific field defining the date of expiration.
Memberof
Credential
Defined in
holder
• Optional
holder: string
Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-holder
Memberof
Credential
Defined in
id
• Optional
id: string
Memberof
Credential
Defined in
issuanceDate
• Optional
issuanceDate: string
EBSI specific field defining the date of issuance.
Memberof
Credential
Defined in
issued
• Optional
issued: string
EBSI specific field defining the date of issuance.
Memberof
Credential
Defined in
issuer
• Optional
issuer: string
Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-issuer
Memberof
Credential
Defined in
proof
• Optional
proof: Proof
Memberof
Credential
Defined in
refreshService
• Optional
refreshService: RefreshService
Memberof
Credential
Defined in
termsOfUse
• Optional
termsOfUse: TermsOfUse
Memberof
Credential
Defined in
type
• Optional
type: string
[]
The value of the type property MUST be, or map to (through interpretation of the
Context
property), one or more URLs. If more than one URL is provided, the URLs MUST be interpreted as an unordered set. Syntactic conveniences SHOULD be used to ease developer usage. Such conveniences might include JSON-LD terms. It is RECOMMENDED that each URL in the type be one which, if dereferenced, results in a document containing machine-readable information about the type. https://www.w3.org/TR/vc-data-model-2.0/#types
Memberof
Credential
Defined in
validFrom
• Optional
validFrom: string
Date Time Stamp string value representing the date and time the credential becomes valid https://www.w3.org/TR/vc-data-model-2.0/#defn-validFrom
Memberof
Credential
Defined in
validUntil
• Optional
validUntil: string
Date Time Stamp string value representing the date and time the credential ceases to be valid https://www.w3.org/TR/vc-data-model-2.0/#defn-validUntil
Memberof
Credential