mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-27 06:01:24 +02:00
some tweaks to 17, 44 and 59.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user