Interface: ICredential
identity_wasm.ICredential
Fields for constructing a new Credential.
Table of contents
Properties
- context
- id
- type
- credentialSubject
- issuer
- issuanceDate
- expirationDate
- credentialStatus
- credentialSchema
- refreshService
- termsOfUse
- evidence
- nonTransferable
Properties
context
• Optional
Readonly
context: string
| Record
\<string
, any
> | (string
| Record
\<string
, any
>)[]
The JSON-LD context(s) applicable to the Credential.
id
• Optional
Readonly
id: string
A unique URI that may be used to identify the Credential.
type
• Optional
Readonly
type: string
| string
[]
One or more URIs defining the type of the Credential. Contains the base context by default.
credentialSubject
• Readonly
credentialSubject: Subject
| Subject
[]
One or more objects representing the Credential subject(s).
issuer
• Readonly
issuer: string
| CoreDID
| IotaDID
| Issuer
A reference to the issuer of the Credential.
issuanceDate
• Optional
Readonly
issuanceDate: Timestamp
A timestamp of when the Credential becomes valid. Defaults to the current datetime.
expirationDate
• Optional
Readonly
expirationDate: Timestamp
A timestamp of when the Credential should no longer be considered valid.
credentialStatus
• Optional
Readonly
credentialStatus: Status
Information used to determine the current status of the Credential.
credentialSchema
• Optional
Readonly
credentialSchema: Schema
| Schema
[]
Information used to assist in the enforcement of a specific Credential structure.
refreshService
• Optional
Readonly
refreshService: RefreshService
| RefreshService
[]
Service(s) used to refresh an expired Credential.
termsOfUse
• Optional
Readonly
termsOfUse: Policy
| Policy
[]
Terms-of-use specified by the Credential issuer.
evidence
• Optional
Readonly
evidence: Evidence
| Evidence
[]
Human-readable evidence used to support the claims within the Credential.
nonTransferable
• Optional
Readonly
nonTransferable: boolean
Indicates that the Credential must only be contained within a Presentation with a proof issued from the Credential subject.