From a88b004e9ff06cfba3fe9018db25426d322439c6 Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Thu, 17 Oct 2024 13:04:10 +0800 Subject: [PATCH] fix(crypto): parse & verify type annotation --- crypto/publicKey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/publicKey.ts b/crypto/publicKey.ts index a0bceca..0328855 100644 --- a/crypto/publicKey.ts +++ b/crypto/publicKey.ts @@ -49,7 +49,7 @@ export class BlahPublicKey { static async parseAndVerifyPayload

( schema: P, signedPayload: unknown, - ): Promise<{ payload: P; key: BlahPublicKey }> { + ): Promise<{ payload: z.infer

; key: BlahPublicKey }> { const signedPayloadSchema = blahSignedPayloadSchemaOf(schema); const parsed = signedPayloadSchema.parse(signedPayload) as z.infer

; return await BlahPublicKey.verifyPayload(parsed);