@@ -20,6 +20,20 @@ abstract class EventBuilder implements RustOpaqueInterface {
20
20
/// Set a custom `created_at` UNIX timestamp
21
21
EventBuilder customCreatedAt ({required BigInt createdAt});
22
22
23
+ /// Gift Wrap
24
+ ///
25
+ /// <https://github.com/nostr-protocol/nips/blob/master/59.md>
26
+ static Future <Event > giftWrap (
27
+ {required NostrSigner signer,
28
+ required PublicKey receiver,
29
+ required UnsignedEvent rumor,
30
+ required List <Tag > extraTags}) =>
31
+ NostrSdk .instance.api.crateApiProtocolEventBuilderEventBuilderGiftWrap (
32
+ signer: signer,
33
+ receiver: receiver,
34
+ rumor: rumor,
35
+ extraTags: extraTags);
36
+
23
37
/// Gift Wrap from seal
24
38
///
25
39
/// <https://github.com/nostr-protocol/nips/blob/master/59.md>
@@ -46,10 +60,10 @@ abstract class EventBuilder implements RustOpaqueInterface {
46
60
/// <https://github.com/nostr-protocol/nips/blob/master/59.md>
47
61
static Future <EventBuilder > seal (
48
62
{required NostrSigner signer,
49
- required PublicKey receiverPubkey ,
63
+ required PublicKey receiver ,
50
64
required UnsignedEvent rumor}) =>
51
65
NostrSdk .instance.api.crateApiProtocolEventBuilderEventBuilderSeal (
52
- signer: signer, receiverPubkey : receiverPubkey , rumor: rumor);
66
+ signer: signer, receiver : receiver , rumor: rumor);
53
67
54
68
/// Build, sign and return event
55
69
Future <Event > sign ({required NostrSigner signer});
0 commit comments