From a95de1dc8a953931134ba74287f47857b804e739 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 8 Jul 2024 15:40:27 -0300 Subject: [PATCH] nip86: structured response types. --- nip86/responses.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nip86/responses.go diff --git a/nip86/responses.go b/nip86/responses.go new file mode 100644 index 0000000..126b674 --- /dev/null +++ b/nip86/responses.go @@ -0,0 +1,16 @@ +package nip86 + +type IDReason struct { + ID string `json:"id"` + Reason string `json:"reason"` +} + +type PubKeyReason struct { + PubKey string `json:"pubkey"` + Reason string `json:"reason"` +} + +type IPReason struct { + IP string `json:"ip"` + Reason string `json:"reason"` +}