From d2baa647e99f2e5b548dd09ea5303b79645816c8 Mon Sep 17 00:00:00 2001 From: Ron Kreutzer Date: Sun, 31 Jan 2021 16:10:22 -0300 Subject: [PATCH] Update nodejs.md Additional setup steps for using VCs --- docs/guides/nodejs.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/guides/nodejs.md b/docs/guides/nodejs.md index 43d9f634..280d507e 100644 --- a/docs/guides/nodejs.md +++ b/docs/guides/nodejs.md @@ -240,3 +240,11 @@ New identity created ``` Congrats, You have set up the agent and created identifiers! + +If you want to use Verifiable Credentials, Verifiable Presentations or Selective Disclosure Requests, you'll need to import DataStore from @veramo/data-store, then add the following to the agent creation parameters: + +```ts +new CredentialIssuer(), +new SelectiveDisclosure(), +new DataStore(dbConnection) +```