Skip to content

Commit

Permalink
nip46: remove duplicated code.
Browse files Browse the repository at this point in the history
fixes #152
  • Loading branch information
fiatjaf committed Oct 1, 2024
1 parent d29025e commit 03ae381
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nip46/dynamic-signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03ae381

Please sign in to comment.