mirror of
https://github.com/asmogo/nws.git
synced 2024-12-15 03:36:22 +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"
|
||
|
}
|