ICredential
@iota/identity-wasm API documentation
Interface: ICredential
Fields for constructing a new Credential.
Indexable
[properties: string]: unknown
Properties
context?
readonlyoptionalcontext:string|Record<string,any> | (string|Record<string,any>)[]
The JSON-LD context(s) applicable to the Credential.
id?
readonlyoptionalid:string
A unique URI that may be used to identify the Credential.
type?
readonlyoptionaltype:string|string[]
One or more URIs defining the type of the Credential. Contains the base context by default.
credentialSubject
One or more objects representing the Credential subject(s).
issuer
A reference to the issuer of the Credential.
issuanceDate?
readonlyoptionalissuanceDate:Timestamp
A timestamp of when the Credential becomes valid. Defaults to the current datetime.
expirationDate?
readonlyoptionalexpirationDate:Timestamp
A timestamp of when the Credential should no longer be considered valid.
credentialStatus?
readonlyoptionalcredentialStatus:Status
Information used to determine the current status of the Credential.
credentialSchema?
Information used to assist in the enforcement of a specific Credential structure.
refreshService?
readonlyoptionalrefreshService:RefreshService|RefreshService[]
Service(s) used to refresh an expired Credential.
termsOfUse?
Terms-of-use specified by the Credential issuer.
evidence?
Human-readable evidence used to support the claims within the Credential.
nonTransferable?
readonlyoptionalnonTransferable:boolean
Indicates that the Credential must only be contained within a Presentation with a proof issued from the Credential subject.