diff --git a/pointers.go b/pointers.go index 2daade0..9f4da04 100644 --- a/pointers.go +++ b/pointers.go @@ -1,19 +1,20 @@ package nostr type ProfilePointer struct { - PublicKey string - Relays []string + PublicKey string `json:"pubkey"` + Relays []string `json:"relays,omitempty"` } type EventPointer struct { - ID string - Relays []string - Author string + ID string `json:"id"` + Relays []string `json:"relays,omitempty"` + Author string `json:"author,omitempty"` + Kind int `json:"kind,omitempty"` } type EntityPointer struct { - PublicKey string - Kind int - Identifier string - Relays []string + PublicKey string `json:"pubkey"` + Kind int `json:"kind,omitempty"` + Identifier string `json:"identifier,omitempty"` + Relays []string `json:"relays,omitempty"` }