nip46: remove duplicated code.

fixes https://github.com/nbd-wtf/go-nostr/issues/152
This commit is contained in:
fiatjaf 2024-10-01 00:00:20 -03:00
parent d29025e958
commit 03ae3812c8

View File

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