Skip to main content

@triveria/wallet / Exports / Credential

Interface: Credential

Export

Credential

Table of contents​

Properties​

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​

api.ts:62


credentialSchema​

• Optional credentialSchema: CredentialSchema

Memberof

Credential

Defined in​

api.ts:80


credentialStatus​

• Optional credentialStatus: CredentialStatus

Memberof

Credential

Defined in​

api.ts:92


credentialSubject​

• Optional credentialSubject: CredentialSubject

Memberof

Credential

Defined in​

api.ts:86


evidence​

• Optional evidence: EvidenceItem[]

Memberof

Credential

Defined in​

api.ts:98


expirationDate​

• Optional expirationDate: string

EBSI specific field defining the date of expiration.

Memberof

Credential

Defined in​

api.ts:128


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​

api.ts:134


id​

• Optional id: string

Memberof

Credential

Defined in​

api.ts:68


issuanceDate​

• Optional issuanceDate: string

EBSI specific field defining the date of issuance.

Memberof

Credential

Defined in​

api.ts:122


issued​

• Optional issued: string

EBSI specific field defining the date of issuance.

Memberof

Credential

Defined in​

api.ts:116


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​

api.ts:140


proof​

• Optional proof: Proof

Memberof

Credential

Defined in​

api.ts:158


refreshService​

• Optional refreshService: RefreshService

Memberof

Credential

Defined in​

api.ts:146


termsOfUse​

• Optional termsOfUse: TermsOfUse

Memberof

Credential

Defined in​

api.ts:152


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​

api.ts:74


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​

api.ts:104


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

Defined in​

api.ts:110