Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GiftUnwrap ¶
func GiftWrap ¶
func GiftWrap( rumor nostr.Event, recipient string, encrypt func(plaintext string) (string, error), sign func(*nostr.Event) error, modify func(*nostr.Event), ) (nostr.Event, error)
GiftWrap takes a 'rumor', encrypts it with our own key, making a 'seal', then encrypts that with a nonce key and signs that (after potentially applying a modify function, which can be nil otherwise), yielding a 'gift-wrap'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.