Skip to main content

CredentialRequest interface

Request to core library to create Core Claim from W3C Verifiable Credential

CredentialRequest

Signature:

export interface CredentialRequest 

Properties

PropertyModifiersTypeDescription
credentialSchemastringJSON credential schema
credentialSubject{ [key: string]: string | object | number | boolean; }Credential subject, usually contains claims and identifier
expiration?number(Optional) expiration time
merklizedRootPosition?MerklizedRootPosition(Optional) merklizedRootPosition (index / value / none)
revocationOpts{ id: string; nonce?: number; type: CredentialStatusType; }

Revocation options

{{ id: string; nonce?: number; type: CredentialStatusType; }} CredentialRequest

subjectPosition?SubjectPosition(Optional) subject position (index / value / none)
typestringCredential type
version?number(Optional) claim version