Skip to content

Commit

Permalink
Add more import * as vc to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 authored and dlongley committed Aug 15, 2024
1 parent fc9ef64 commit 545a4eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down Expand Up @@ -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

Expand All @@ -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
});
Expand Down

0 comments on commit 545a4eb

Please sign in to comment.