nip17

package
v0.49.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDMRelays

func GetDMRelays(ctx context.Context, pubkey string, pool *nostr.SimplePool, relaysToQuery []string) []string

func ListenForMessages

func ListenForMessages(
	ctx context.Context,
	pool *nostr.SimplePool,
	kr nostr.Keyer,
	ourRelays []string,
	since nostr.Timestamp,
) chan nostr.Event

ListenForMessages returns a channel with the rumors already decrypted and checked

func PrepareMessage

func PrepareMessage(
	ctx context.Context,
	content string,
	tags nostr.Tags,
	kr nostr.Keyer,
	recipientPubKey string,
	modify func(*nostr.Event),
) (toUs nostr.Event, toThem nostr.Event, err error)

func PublishMessage added in v0.37.0

func PublishMessage(
	ctx context.Context,
	content string,
	tags nostr.Tags,
	pool *nostr.SimplePool,
	ourRelays []string,
	theirRelays []string,
	kr nostr.Keyer,
	recipientPubKey string,
	modify func(*nostr.Event),
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL