mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-15 16:50:16 +01:00
nip46: only use nip44 for encrypting requests and responses (breaking).
This commit is contained in:
@@ -54,7 +54,7 @@ func (s Session) MakeResponse(
|
||||
}
|
||||
|
||||
jresp, _ := json.Marshal(resp)
|
||||
ciphertext, err := nip04.Encrypt(string(jresp), s.SharedKey)
|
||||
ciphertext, err := nip44.Encrypt(string(jresp), s.ConversationKey)
|
||||
if err != nil {
|
||||
return resp, evt, fmt.Errorf("failed to encrypt result: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user