From a72e47135a2e36716a96f9c5380641bd28dc6f6a Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 25 Oct 2024 21:57:39 -0300 Subject: [PATCH] nip46: we have no business checking the pubkey of the sign_event result. --- nip46.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip46.ts b/nip46.ts index 279709c..3de77f5 100644 --- a/nip46.ts +++ b/nip46.ts @@ -235,7 +235,7 @@ export class BunkerSigner { async signEvent(event: UnsignedEvent): Promise { let resp = await this.sendRequest('sign_event', [JSON.stringify(event)]) let signed: NostrEvent = JSON.parse(resp) - if (signed.pubkey === this.bp.pubkey && verifyEvent(signed)) { + if (verifyEvent(signed)) { return signed } else { throw new Error(`event returned from bunker is improperly signed: ${JSON.stringify(signed)}`)