Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Dec 11, 2023
1 parent dd69257 commit 53c5b47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/credentials/src/verifiable-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 53c5b47

Please sign in to comment.