Skip to main content

@triveria/wallet / Exports / Credential

Interface: Credential

Export

Credential

Indexable

▪ [key: string]: any

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:91


_sd

Optional _sd: string[]

Array of specific VC field disclosures

Memberof

Credential

Defined in

api.ts:175


_sd_alg

Optional _sd_alg: string

Algorithm used for hashing disclosure digests

Memberof

Credential

Defined in

api.ts:181


credentialSchema

Optional credentialSchema: CredentialSchema

Memberof

Credential

Defined in

api.ts:109


credentialStatus

Optional credentialStatus: CredentialStatus

Memberof

Credential

Defined in

api.ts:121


credentialSubject

Optional credentialSubject: CredentialSubject

Memberof

Credential

Defined in

api.ts:115


evidence

Optional evidence: EvidenceItem[]

Memberof

Credential

Defined in

api.ts:127


expirationDate

Optional expirationDate: string

EBSI specific field defining the date of expiration.

Memberof

Credential

Defined in

api.ts:157


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:163


id

Optional id: string

Memberof

Credential

Defined in

api.ts:97


issuanceDate

Optional issuanceDate: string

EBSI specific field defining the date of issuance.

Memberof

Credential

Defined in

api.ts:151


issued

Optional issued: string

EBSI specific field defining the date of issuance.

Memberof

Credential

Defined in

api.ts:145


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:169


proof

Optional proof: Proof

Memberof

Credential

Defined in

api.ts:199


refreshService

Optional refreshService: RefreshService

Memberof

Credential

Defined in

api.ts:187


termsOfUse

Optional termsOfUse: TermsOfUse

Memberof

Credential

Defined in

api.ts:193


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:103


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:133


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:139