toGiftWrap method
converts a Nip01Event to a giftWrap Nip01Event
rumor the event you want to wrap
recipientPubkey the reciever of the rumor
returns the wrapped event
Implementation
Future<Nip01Event> toGiftWrap({
required Nip01Event rumor,
required String recipientPubkey,
}) async {
final sealedRumor =
await sealRumor(rumor: rumor, recipientPubkey: recipientPubkey);
final giftWrap = await wrapEvent(
recipientPublicKey: recipientPubkey,
sealEvent: sealedRumor,
);
return giftWrap;
}