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);