nip11: this relay pubkey doesn't have to be a pointer.
This commit is contained in:
@@ -9,13 +9,13 @@ import (
|
|||||||
type RelayInformationDocument struct {
|
type RelayInformationDocument struct {
|
||||||
URL string `json:"-"`
|
URL string `json:"-"`
|
||||||
|
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
PubKey *nostr.PubKey `json:"pubkey,omitempty"`
|
PubKey nostr.PubKey `json:"pubkey,omitempty"`
|
||||||
Contact string `json:"contact,omitempty"`
|
Contact string `json:"contact,omitempty"`
|
||||||
SupportedNIPs []any `json:"supported_nips,omitempty"`
|
SupportedNIPs []any `json:"supported_nips,omitempty"`
|
||||||
Software string `json:"software,omitempty"`
|
Software string `json:"software,omitempty"`
|
||||||
Version string `json:"version,omitempty"`
|
Version string `json:"version,omitempty"`
|
||||||
|
|
||||||
Limitation *RelayLimitationDocument `json:"limitation,omitempty"`
|
Limitation *RelayLimitationDocument `json:"limitation,omitempty"`
|
||||||
RelayCountries []string `json:"relay_countries,omitempty"`
|
RelayCountries []string `json:"relay_countries,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user