20 Commits

Author SHA1 Message Date
fiatjaf
72d9aac9b1 replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too. 2024-12-03 00:49:27 -03:00
fiatjaf
a1a4c04a18 nip05: identifier to url. 2024-11-27 10:16:52 -03:00
fiatjaf
99c3765092 nip05: use a global http client. 2024-10-29 21:11:59 -03:00
K
c91e7b9765
using testify instead of testing.T methods. (#143) 2024-09-09 07:20:56 -03:00
fiatjaf
7284ebcf13
fix nip05. 2024-03-11 13:44:58 -03:00
fiatjaf
9cb740764b
nip05: IsValidIdentifier 2024-03-02 07:48:24 -03:00
fiatjaf
f4cf242084
validating/parsing nip05 and nip46. 2024-03-01 15:55:02 -03:00
fiatjaf
e0ba846a03
nip46: support nip05 identifier in client. 2024-02-29 16:28:46 -03:00
fiatjaf
e4f0509689
nip05: omit empty fields. 2024-02-28 09:41:11 -03:00
fiatjaf
ce424619f4
nip05: add nip46 field. 2024-01-06 08:07:28 -03:00
Kay
ac2350c722 style: using effective go and refactoring 2023-08-21 15:50:05 -03:00
fiatjaf
1c118cd83e
take context.Context for nip-05 resolving. 2023-05-04 13:20:15 -03:00
fiatjaf
3f3bbb7529
ensure nip05 results are valid keys or nil. 2023-03-23 08:09:49 -03:00
zach
17a7c3a678 feat: add check redirect for identifier request 2023-02-25 15:54:00 -03:00
fiatjaf
a3e3b25dd9
support relays in nip05. 2023-02-05 16:25:00 -03:00
fiatjaf
024f89ac58
unexport internal nip05 types. 2023-02-05 16:22:41 -03:00
fiatjaf
e407725a43
adjust nip05 so it supports naked domains. 2023-02-05 16:21:50 -03:00
fiatjaf
e8bc11e4f9
support nip-35. 2022-11-26 19:31:49 -03:00
fiatjaf
1f1d3cfe7f some changes and fixes related to sub.Sub(). 2022-05-04 12:39:10 -03:00
fiatjaf
5f3221e966 nip05 queryName() function. 2022-05-04 11:15:31 -03:00