From 03ae3812c886ecca236157f6c341ff0a9d8a5fad Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 1 Oct 2024 00:00:20 -0300 Subject: [PATCH] nip46: remove duplicated code. fixes https://github.com/nbd-wtf/go-nostr/issues/152 --- nip46/dynamic-signer.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nip46/dynamic-signer.go b/nip46/dynamic-signer.go index c2e512d..bad8492 100644 --- a/nip46/dynamic-signer.go +++ b/nip46/dynamic-signer.go @@ -104,11 +104,6 @@ func (p *DynamicSigner) HandleRequest(event *nostr.Event) ( return req, resp, eventResponse, fmt.Errorf("failed to compute shared secret: %w", err) } - session.SharedKey, err = nip04.ComputeSharedSecret(event.PubKey, privateKey) - if err != nil { - return req, resp, eventResponse, fmt.Errorf("failed to compute shared secret: %w", err) - } - p.setSession(event.PubKey, session) req, err = session.ParseRequest(event)