nws/netstr/address.go
2024-07-22 23:00:21 +02:00

17 lines
368 B
Go

package netstr
// NostrAddress represents a type that holds the profile and public key of a Nostr address.
type NostrAddress struct {
Nprofile string
pubkey string
}
func (n NostrAddress) String() string {
return n.Nprofile
}
// Network returns the network type of the NostrAddress, which is "nostr".
func (n NostrAddress) Network() string {
return "nostr"
}