nip05: add nip46 field.

This commit is contained in:
fiatjaf 2024-01-06 08:07:28 -03:00
parent 8da32e6dfc
commit ce424619f4
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -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) {