Skip to content

Commit

Permalink
Update README.md for DIDDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
rkreutzer authored Nov 29, 2023
1 parent 262088a commit 3213b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ The Proof of Possession using a signature callback function. The example uses th

```typescript
import * as jose from 'jose';
import { DIDDocument } from 'did-resolver';

const { privateKey, publicKey } = await jose.generateKeyPair('ES256');

Expand All @@ -124,7 +125,7 @@ async function signCallback(args: Jwt, kid: string): Promise<string> {
.sign(privateKey);
}

const callbacks: ProofOfPossessionCallbacks = {
const callbacks: ProofOfPossessionCallbacks<DIDDocument> = {
signCallback,
};
```
Expand Down

0 comments on commit 3213b38

Please sign in to comment.