nip19: decode to pointer.

This commit is contained in:
fiatjaf
2025-03-06 11:49:10 -03:00
parent 4fb6fcd9a2
commit ec55b1fac8
2 changed files with 30 additions and 2 deletions

View File

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