From 545a4eba6e2678a65c5e9060475e2045542c2d5e Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Thu, 15 Aug 2024 08:09:55 -0400 Subject: [PATCH] Add more import * as vc to README. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 777570a6..1a99799d 100644 --- a/README.md +++ b/README.md @@ -516,6 +516,8 @@ Once you've created the presentation (either via `createPresentation()` or manually), you can sign it using `signPresentation()`: ```js +import * as vc from '@digitalbazaar/vc'; + const vp = await vc.signPresentation({ presentation, suite, challenge, documentLoader }); @@ -578,6 +580,8 @@ Pre-requisites: To verify a verifiable presentation: ```js +import * as vc from '@digitalbazaar/vc'; + // challenge has been received from the requesting party - see 'challenge' // section below @@ -590,6 +594,8 @@ To verify an unsigned presentation, you must set the `unsignedPresentation` flag: ```js +import * as vc from '@digitalbazaar/vc'; + const result = await vc.verify({ presentation, suite, documentLoader, unsignedPresentation: true });