mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
nip17: use new path for Keyer interface.
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
"github.com/nbd-wtf/go-nostr/keyer"
|
|
||||||
"github.com/nbd-wtf/go-nostr/nip59"
|
"github.com/nbd-wtf/go-nostr/nip59"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -39,7 +38,7 @@ func PublishMessage(
|
|||||||
pool *nostr.SimplePool,
|
pool *nostr.SimplePool,
|
||||||
ourRelays []string,
|
ourRelays []string,
|
||||||
theirRelays []string,
|
theirRelays []string,
|
||||||
kr keyer.Keyer,
|
kr nostr.Keyer,
|
||||||
recipientPubKey string,
|
recipientPubKey string,
|
||||||
modify func(*nostr.Event),
|
modify func(*nostr.Event),
|
||||||
) error {
|
) error {
|
||||||
@@ -92,7 +91,7 @@ func PrepareMessage(
|
|||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
content string,
|
content string,
|
||||||
tags nostr.Tags,
|
tags nostr.Tags,
|
||||||
kr keyer.Keyer,
|
kr nostr.Keyer,
|
||||||
recipientPubKey string,
|
recipientPubKey string,
|
||||||
modify func(*nostr.Event),
|
modify func(*nostr.Event),
|
||||||
) (toUs nostr.Event, toThem nostr.Event, err error) {
|
) (toUs nostr.Event, toThem nostr.Event, err error) {
|
||||||
@@ -139,7 +138,7 @@ func PrepareMessage(
|
|||||||
func ListenForMessages(
|
func ListenForMessages(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
pool *nostr.SimplePool,
|
pool *nostr.SimplePool,
|
||||||
kr keyer.Keyer,
|
kr nostr.Keyer,
|
||||||
ourRelays []string,
|
ourRelays []string,
|
||||||
since nostr.Timestamp,
|
since nostr.Timestamp,
|
||||||
) chan nostr.Event {
|
) chan nostr.Event {
|
||||||
|
Reference in New Issue
Block a user