dns

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: CC0-1.0, CC0-1.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeIdentifier

func NormalizeIdentifier(username string) string

NormalizeIdentifier trims off the _@ prefix for how a NIP-05 identifier should be shown in a user interface.

func QueryIdentifier

func QueryIdentifier(c context.T, username string) (pp *pointers.Profile,
	err error)

Types

type WellKnownResponse

type WellKnownResponse struct {
	Names  name2KeyMap   `json:"names"`  // NIP-05
	Relays key2RelaysMap `json:"relays"` // NIP-35
}

WellKnownResponse is the standard format of the JSON file hosted at a given URL with the path /.well-known/nostr.json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL