From ce424619f44448b263d4110875d2abfe3cb14e91 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 6 Jan 2024 08:07:28 -0300 Subject: [PATCH] nip05: add nip46 field. --- nip05/nip05.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/nip05/nip05.go b/nip05/nip05.go index 8a02e8b..2764f04 100644 --- a/nip05/nip05.go +++ b/nip05/nip05.go @@ -11,14 +11,10 @@ import ( "github.com/nbd-wtf/go-nostr" ) -type ( - name2KeyMap map[string]string - key2RelaysMap map[string][]string -) - type WellKnownResponse struct { - Names name2KeyMap `json:"names"` // NIP-05 - Relays key2RelaysMap `json:"relays"` // NIP-35 + Names map[string]string `json:"names"` + Relays map[string][]string `json:"relays"` + NIP46 map[string][]string `json:"nip46"` } func QueryIdentifier(ctx context.Context, fullname string) (*nostr.ProfilePointer, error) {