diff --git a/khatru/grasp/server.go b/khatru/grasp/server.go index f5ce88b..22c370b 100644 --- a/khatru/grasp/server.go +++ b/khatru/grasp/server.go @@ -51,6 +51,9 @@ func New(rl *khatru.Relay, repositoryDir string) *GraspServer { }, } + rl.Info.AddSupportedNIP(34) + rl.Info.SupportedGrasps = append(rl.Info.SupportedGrasps, "GRASP-01") + base := rl.Router() mux := http.NewServeMux() diff --git a/nip11/types.go b/nip11/types.go index 4347155..7df9463 100644 --- a/nip11/types.go +++ b/nip11/types.go @@ -28,6 +28,9 @@ type RelayInformationDocument struct { Retention []*RelayRetentionDocument `json:"retention,omitempty"` Icon string `json:"icon,omitempty"` Banner string `json:"banner,omitempty"` + + // nip-34 grasp stuff + SupportedGrasps []string `json:"supported_grasps,omitempty"` } func (info *RelayInformationDocument) AddSupportedNIP(number int) {