Commit Graph

1116 Commits

Author SHA1 Message Date
fiatjaf
c20ca669cd nip77: more interface fixes to prevent channel deadlock. 2025-11-13 16:12:10 -03:00
fiatjaf
e6dd124042 nip19: support empty "d" in naddr. 2025-11-13 11:45:39 -03:00
fiatjaf
dcb9378f09 nip77: fix test function calls. 2025-11-13 09:21:10 -03:00
fiatjaf
98dbe7b9e9 improve and make nip77 api nicer so it could be better used in nak. 2025-11-12 20:21:02 -03:00
fiatjaf
43fabbeb2a eventstore: more consistent ErrDupEvent firing. 2025-11-12 16:10:50 -03:00
fiatjaf
bdced49a19 nip77: fix interface so we don't have channel lockdown. 2025-11-12 15:09:09 -03:00
fiatjaf
00c153cf92 limit reconnect interval to 10min.
see https://github.com/nbd-wtf/go-nostr/issues/198
2025-11-12 10:15:50 -03:00
fiatjaf
c2ab9d082c *connection to be an integral part of *Relay. 2025-11-12 09:47:26 -03:00
fiatjaf
1c43f0d666 relay wasn't taking CustomHandler and NoticeHandler from options. 2025-11-11 23:49:00 -03:00
fiatjaf
dfd4bea78c nip77: fix two negentropy bugs reminiscent of the binary conversation from nostrlib. 2025-11-11 23:28:56 -03:00
fiatjaf
db835ef3c4 khatru: add policies to validate event tags by kind and replace reactions. 2025-11-11 16:34:17 -03:00
fiatjaf
637de481e5 khatru: fix bug that caused a query with limit zero to bypass request filtering.
spotted by hodlbod.
2025-11-04 21:19:56 -03:00
fiatjaf
38a6ca92b9 b0: remove hardcoded timeouts in blossom client.
see nostr:nevent1qvzqqqqqqypzqmjxss3dld622uu8q25gywum9qtg4w4cv4064jmg20xsac2aam5nqyd8wumn8ghj7urewfsk66ty9enxjct5dfskvtnrdakj7qpqrfcfcq52gfv6znm8hkdpa3rlxad72zl6ah4haaneqzdxwmnamg3sk2sztg
2025-11-04 08:26:13 -03:00
fiatjaf
b87bc0ede4 khatru: store and broadcast kind:5 deletion events.
by insistence of @staab
2025-10-31 16:36:46 -03:00
fiatjaf
32bbff615a khatru: ForceBroadcastEvent() 2025-10-31 13:05:19 -03:00
fiatjaf
13c44a4644 khatru: PreventBroadcast() also gets passed the filter. 2025-10-30 16:30:34 -03:00
fiatjaf
20f06d9608 eventstore: SortedMerge() helper for combining results from different eventstores. 2025-10-30 11:42:04 -03:00
fiatjaf
e34ce6aa94 khatru: fix an argument name. 2025-10-30 09:41:37 -03:00
fiatjaf
0aa0038c40 mmm: lockfile to prevent multiple instances. 2025-10-28 19:09:28 -03:00
fiatjaf
b3c617e36b eventstore: cmd can read from files and doesn't break on long lines. 2025-10-28 18:40:51 -03:00
fiatjaf
8ae530b163 nip42/khatru: clearer AUTH error messages. 2025-10-28 11:42:38 -03:00
fiatjaf
309bab0048 khatru: router AnyEvent() and AnyReq(). 2025-10-28 11:10:45 -03:00
fiatjaf
a0a66cb719 nip61: ensure mint URLs are always normalized. 2025-10-26 17:36:44 -03:00
fiatjaf
a78ad86b41 sdk: FetchNutZapInfo() using the same flow as FetchProfileMetadata(). 2025-10-26 17:32:29 -03:00
fiatjaf
5c8f04efa1 nip61: a comment about the amount. 2025-10-26 17:00:48 -03:00
fiatjaf
131093388d khatru: reduce default max number of authenticated clients. 2025-10-26 17:00:35 -03:00
fiatjaf
a7b29c5c96 sdk: cached mint keys queries. 2025-10-26 16:45:50 -03:00
fiatjaf
8b38e1aec9 nip57 and nip61: parse amount. 2025-10-24 23:34:02 -03:00
fiatjaf
3f1e013912 sdk: cached zap provider queries. 2025-10-24 23:11:42 -03:00
fiatjaf
ea806d2d65 hardcode a NUMS key. 2025-10-24 17:41:50 -03:00
fiatjaf
9fbf3ea165 implement json marshaler and unmarshaler for SecretKey. 2025-10-24 16:48:28 -03:00
fiatjaf
0012a3cbbf ensure nostr.Generate() yields a valid secret. 2025-10-24 16:48:02 -03:00
fiatjaf
e4bbebdd8f compile-time check for json.Marshaler and json.Unmarshaler. 2025-10-24 00:18:02 -03:00
fiatjaf
588e415440 small fixes in hex parsing. 2025-10-24 00:12:25 -03:00
fiatjaf
dd097470d2 try to reconnect even if the first connection failed. 2025-10-22 07:52:08 -03:00
fiatjaf
6ee0d090e3 khatru: deploy docs to netlify. 2025-10-20 18:37:21 -03:00
fiatjaf
8cf120c08f khatru: update docs again, now it seems to be mostly up to date. 2025-10-20 18:22:08 -03:00
fiatjaf
e1fbd09407 fix iterator cancelation in relay.QueryEvents() 2025-10-17 19:32:23 -03:00
fiatjaf
fc16a36481 mmm: stop truncating mmap, reorder commits and write operations such that eventual inconsistencies are minimized and less harmful. 2025-10-16 03:11:11 +00:00
fiatjaf
98cbe66e16 mmm: test that free ranges are being used. 2025-10-16 01:43:51 +00:00
fiatjaf
0dcaf0fa95 mmm: fixes to rescan logic. 2025-10-15 23:02:32 +00:00
fiatjaf
5d2675f356 mmm: freeranges tests and fixes. 2025-10-15 03:50:00 +00:00
fiatjaf
ac49036b77 mmm: small .EnsureLayer() change, fuzz tests for fixing borked databases 2025-10-15 01:31:44 +00:00
fiatjaf
d85bb8aa1b khatru: fix for panics when expiration manager is nil. 2025-10-14 01:52:10 +00:00
fiatjaf
9e41bc69c4 mmm: test .Rescan() 2025-10-14 01:46:42 +00:00
fiatjaf
53e838c61d mmm: freeranges computed on startup and kept only in memory. 2025-10-14 00:38:51 +00:00
fiatjaf
bcc7575e04 mmm: do random rescans in the fuzz test to ensure they don't break anything. 2025-10-14 00:25:44 +00:00
fiatjaf
95c70e3225 mmm: Rescan() 2025-10-14 00:19:52 +00:00
fiatjaf
776a82ba7f sdk: fix for invalid npub in InputToProfile() 2025-10-13 23:55:43 +00:00
fiatjaf
47b1608e6b mmm: fix fuzz test. 2025-10-13 21:53:48 +00:00