Skip to main content

Issue presentation

Verifiable Presentations allow holders to share selected information from their verifiable credentials with a verifier. A presentation can bundle multiple credentials and uses cryptographic proofs to ensure authenticity and integrity.

Create and issue a Verifiable Presentation

To issue a verifiable presentation that contains multiple credentials, follow the steps below:

  1. Initialize the VpDecorator instance and use it to create a VerifiablePresentation:
const vpDecoratorInstance = await client.createVpDecorator(); // VpDecorator
  1. Call the issue method to issue a new verifiable presentation and return its representation (a VerifiablePresentation instance).
const presentation = await vpDecoratorInstance.issue([credential, credential2], privateKey.id); // VerifiablePresentation

You can pass the following arrays to the issue method:

  • VerifiableCredential
  • CredentialResource ids
  • CredentialResource
  • UnknownVerifiableCredential

Further reading

After presentation issuance, you can do the following: