some tweaks to 17, 44 and 59.

This commit is contained in:
fiatjaf
2024-09-14 22:47:26 -03:00
parent 0656357a60
commit 46a0c95b96
3 changed files with 31 additions and 38 deletions

View File

@@ -39,7 +39,7 @@ func GiftWrap(
if err != nil {
return nostr.Event{}, err
}
sealCiphertext, err := nip44.Encrypt(seal.String(), temporaryConversationKey, nil)
sealCiphertext, err := nip44.Encrypt(seal.String(), temporaryConversationKey)
if err != nil {
return nostr.Event{}, err
}
@@ -57,8 +57,8 @@ func GiftWrap(
modify(&gw)
}
if err := seal.Sign(nonceKey); err != nil {
return seal, err
if err := gw.Sign(nonceKey); err != nil {
return gw, err
}
return gw, nil