add kinds

This commit is contained in:
1l0
2024-10-06 01:18:52 +09:00
committed by fiatjaf_
parent 27bd9bfc8c
commit f08e4e9af7
3 changed files with 84 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ func GiftWrap(
}
seal := nostr.Event{
Kind: 13,
Kind: nostr.KindSeal,
Content: rumorCiphertext,
CreatedAt: nostr.Now() - nostr.Timestamp(60*rand.Int63n(600) /* up to 6 hours in the past */),
Tags: make(nostr.Tags, 0),
@@ -47,7 +47,7 @@ func GiftWrap(
}
gw := nostr.Event{
Kind: 1059,
Kind: nostr.KindGiftWrap,
Content: sealCiphertext,
CreatedAt: nostr.Now() - nostr.Timestamp(60*rand.Int63n(600) /* up to 6 hours in the past */),
Tags: nostr.Tags{