mirror of
https://github.com/asmogo/nws.git
synced 2024-12-14 19:26:21 +00:00
17 lines
368 B
Go
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"
|
|
}
|