Commit Graph

1202 Commits

Author SHA1 Message Date
fiatjaf
44130595c6 update to go1.25 because of our usage of waitgroup.Go 2025-11-26 07:12:25 -03:00
fiatjaf
6367bd71d4 nip11: add "supported_grasps" special field. 2025-11-25 14:50:14 -03:00
fiatjaf
4df9ffa4c8 nip54: test against all the djot syntax examples from their guide. 2025-11-25 08:33:39 -03:00
fiatjaf
de54dd1fa4 nip54: bring back normalization test. 2025-11-23 21:28:42 -03:00
fiatjaf
45f45fafaa nip54: djot parser. 2025-11-23 18:34:31 -03:00
fiatjaf
bb5413c0ed nip34: repository equals. 2025-11-23 17:52:39 -03:00
fiatjaf
ff5655ac55 schema: tests passing. 2025-11-23 17:52:29 -03:00
fiatjaf
18887727d1 schema: hardcode handle "d" tag automatically. 2025-11-23 13:41:16 -03:00
fiatjaf
e4babdd2bf schema: handle required tags. 2025-11-23 13:26:55 -03:00
fiatjaf
75e0b77d54 schema: use the same validators on content. 2025-11-23 13:20:23 -03:00
fiatjaf
0b239c9fe0 schema: support generic tags. 2025-11-23 13:03:16 -03:00
fiatjaf
b9c9528fa5 schema: pluggable validators (with defaults) and checking whether some are missing. 2025-11-23 12:51:08 -03:00
fiatjaf
b820569d93 schema: refactoring and making it usable and flexible. 2025-11-23 11:27:17 -03:00
fiatjaf
8458e26291 nip10: fix parsing when the reply is an "a". fix and test nip10. 2025-11-23 06:57:54 -03:00
fiatjaf
1284f91629 nip11: fix test because no.str.cr is offline again. 2025-11-23 06:57:54 -03:00
fiatjaf
8161bd9ad1 mmm: create directory before creating the lockfile. 2025-11-23 06:57:54 -03:00
fiatjaf
98959e73e7 eventstore: replace bluge with bleve.
bluge seems to be abandoned and bleve should work better, who knows.
2025-11-23 06:57:54 -03:00
fiatjaf
8aa9c7e945 fix go version at 1.24. 2025-11-23 06:57:54 -03:00
fiatjaf
55a43e46b7 use xhex everywhere. 2025-11-23 06:57:54 -03:00
fiatjaf
61b9717c5c nip77: fix loading events from targetSource into vector. 2025-11-23 06:57:54 -03:00
fiatjaf
fd8c271dc4 nip77: only fetch ids after sync if there are ids to fetch. 2025-11-23 06:57:54 -03:00
fiatjaf
d37f7e0e4d nip34: String() methods to repository and state. 2025-11-23 06:57:54 -03:00
fiatjaf
4cbca27104 schema: improve errors, disallow dangling spaces. 2025-11-23 06:57:54 -03:00
fiatjaf
a62ddd1326 remove relay_js_test.go for now since we lost wasm support. 2025-11-20 23:48:51 -03:00
fiatjaf
cdd1c1146e improve readme. 2025-11-20 07:36:22 -03:00
fiatjaf
4a5983a17c grasp: fix all the issues with info-refs, force-pushes, checked-out repos etc, and .Log() 2025-11-19 16:37:20 -03:00
fiatjaf
76abd031d2 nip29: "hidden" and "private" metadata fields.
https://github.com/nostr-protocol/nips/pull/2106
2025-11-19 09:19:17 -03:00
fiatjaf
5efd8c6485 grasp: better git error messages and get rid of stdout printing. 2025-11-18 23:18:49 -03:00
fiatjaf
6cdcdfbae9 nipb0: blossom URL normalization. 2025-11-18 23:04:41 -03:00
fiatjaf
8ea2a00037 grasp: temporary OnRead and OnWrite hooks. 2025-11-18 16:28:05 -03:00
fiatjaf
f5fb294efa blossom: add an alternative BlobIndex implementation in memory. 2025-11-18 16:04:37 -03:00
fiatjaf
078e9b4cc2 khatru: grasp server. 2025-11-17 08:10:08 -03:00
fiatjaf
017e4aea11 nip34: return events, not pointer to events. 2025-11-14 12:08:47 -03:00
fiatjaf
4b2cec9c6d proper relay pinging disconnection.
from https://github.com/nbd-wtf/go-nostr/pull/200
2025-11-13 16:37:09 -03:00
fiatjaf
d981d34ab9 nip77: set default frame size limit to 60000 (same as strfry). 2025-11-13 16:25:29 -03:00
fiatjaf
312cc32da5 nip77: one small useless optimization. 2025-11-13 16:18:49 -03:00
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