mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
nip46: remove duplicated code.
fixes https://github.com/nbd-wtf/go-nostr/issues/152
This commit is contained in:
parent
d29025e958
commit
03ae3812c8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user