Skip to main content

ICreateVerifiableCredentialLDArgs interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Encapsulates the parameters required to create a W3C Verifiable Credential

This API may change without a BREAKING CHANGE notice.

Signature:

export interface ICreateVerifiableCredentialLDArgs extends UsingResolutionOptions

Extends: UsingResolutionOptions

Properties

PropertyModifiersTypeDescription
credentialCredentialPayload

(BETA) The json payload of the Credential according to the canonical model

The signer of the Credential is chosen based on the issuer.id property of the credential

@context, type and issuanceDate will be added automatically if omitted

fetchRemoteContexts?boolean

(BETA) (Optional) Set this to true if you want the @context URLs to be fetched in case they are not preloaded.

Defaults to false

keyRef?string(BETA) (Optional) Optional. The key handle (IKey.kid) from the internal database.