From 53c5b471307bb618d8dd3d513ebf9a30568acc8f Mon Sep 17 00:00:00 2001 From: Neal Date: Mon, 11 Dec 2023 15:41:47 -0600 Subject: [PATCH] updates --- packages/credentials/README.md | 4 ++-- packages/credentials/src/verifiable-credential.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/credentials/README.md b/packages/credentials/README.md index 690e2a73f..6f1db9abb 100644 --- a/packages/credentials/README.md +++ b/packages/credentials/README.md @@ -30,7 +30,7 @@ class StreetCredibility { } } -const vc = new VerifiableCredential({ +const vc = await VerifiableCredential.create({ type: "StreetCred", issuer: "did:example:issuer", subject: "did:example:subject", @@ -51,7 +51,7 @@ const issuer = await DidKeyMethod.create(); Then sign the VC using the `did` object ```javascript -const vcJwt = vc.sign({ did: issuer }); +const vcJwt = await vc.sign({ did: issuer }); ``` ### Verifying a Verifiable Credential diff --git a/packages/credentials/src/verifiable-credential.ts b/packages/credentials/src/verifiable-credential.ts index 0fb809ede..e70a11fca 100644 --- a/packages/credentials/src/verifiable-credential.ts +++ b/packages/credentials/src/verifiable-credential.ts @@ -113,7 +113,7 @@ export class VerifiableCredential { * * @example * ```ts - * const vc = VerifiableCredential.create({ + * const vc = await VerifiableCredential.create({ * type: 'StreetCredibility', * issuer: 'did:ex:issuer', * subject: 'did:ex:subject',