Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more import * as vc to README.
Browse files Browse the repository at this point in the history
aljones15 committed Aug 15, 2024
1 parent 570347b commit 5994f51
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
@@ -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
});

0 comments on commit 5994f51

Please sign in to comment.