more conversions.

This commit is contained in:
fiatjaf
2025-04-15 00:00:03 -03:00
parent f9e4a5efa3
commit 376834cbf9
117 changed files with 450 additions and 1019 deletions

View File

@@ -1,10 +1,9 @@
package nip19
import (
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
func NeventFromRelayEvent(ie nostr.RelayEvent) string {
v, _ := EncodeEvent(ie.ID, []string{ie.Relay.URL}, ie.PubKey)
return v
return EncodeNevent(ie.ID, []string{ie.Relay.URL}, ie.PubKey)
}