From 3213b383288232633893cd9faa3e4cf38ead210e Mon Sep 17 00:00:00 2001 From: Ron Kreutzer Date: Wed, 29 Nov 2023 16:38:23 -0700 Subject: [PATCH] Update README.md for DIDDocument --- packages/client/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/README.md b/packages/client/README.md index 43b9ffd2..2d4b5997 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -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'); @@ -124,7 +125,7 @@ async function signCallback(args: Jwt, kid: string): Promise { .sign(privateKey); } -const callbacks: ProofOfPossessionCallbacks = { +const callbacks: ProofOfPossessionCallbacks = { signCallback, }; ```