nws/netstr/address.go

17 lines
368 B
Go
Raw Normal View History

2024-07-22 21:00:21 +00:00
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"
}