Commit Graph

1195 Commits

Author SHA1 Message Date
fiatjaf
0d2dbb13ac schema: support "multiple" tag. 2026-01-09 22:36:06 -03:00
fiatjaf
428cf33bc1 nip49: fix decryption error handling. 2026-01-09 22:35:53 -03:00
fiatjaf
cf95381d41 nip29: fix validation of deletion moderation event. 2026-01-09 22:35:31 -03:00
fiatjaf
3335c29389 relay: auth handler; pool: rename auth handler. 2026-01-08 18:54:19 -03:00
fiatjaf
416e11b868 khatru: support path in getBaseURL(). 2026-01-02 07:25:46 -03:00
fiatjaf
f47b77272b khatru: serve relay only from the path specified in ServiceURL. 2025-12-30 23:58:33 -03:00
fiatjaf
e52ffa631b fix bunker nip44 decrypt typo (was calling encrypt). 2025-12-30 15:19:13 -03:00
fiatjaf
9f6143143b grasp: allowFilter. 2025-12-29 19:50:25 -03:00
fiatjaf
099569ea4f String() method for DirectedFilter. 2025-12-21 23:58:42 -03:00
fiatjaf
dbd8f47674 lmdb: make serial() used from multiple processes. 2025-12-21 22:20:54 -03:00
fiatjaf
99197d8321 sdk: automatically store replaceable events since we already check the local store for them. 2025-12-21 22:14:59 -03:00
fiatjaf
dd6d3c68fb nip05: be tolerant with invalid pubkeys in well-known response (skip them). 2025-12-21 19:53:24 -03:00
fiatjaf
daee8575d9 filter.GetTheoreticalLimit() to encompass the actual limit specified in the filter. 2025-12-19 06:52:46 -03:00
fiatjaf
14dcc01f8f eventstore: SortedMerge() takes a limit and is simpler (should be faster) for small limits. 2025-12-19 06:40:22 -03:00
fiatjaf
c6bd1ee446 khatru: fix bbolt halting problem by deleting outside of the loop that fetches events to be deleted.
fixes nostr:nevent1qvzqqqqx25pzq2f38nys0gq4hs5k4l4s426689psdk7d52kzjk9s0ypne2nt7927qy88wumn8ghj7mn0wvhxcmmv9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcqyphrdv7jerr3f5mtlpcl7j7dg26ecxj9vrd5pyf0jknkqmp5qyyj28gxd3q
2025-12-19 00:23:21 -03:00
fiatjaf
78d8f36e2d mmm: better ComputeStats() 2025-12-18 13:26:09 -03:00
fiatjaf
97424e363a allow using a custom http client.
fixes nostr:nevent1qvzqqqqx25pzqm8ksn7p6aak225sed38vlzngtuwl50tf0e8ahzuzkhpmuahzgzdqyd8wumn8ghj7cmpvd5x2v3wwpexjmtpdshxuet59amrzqg4waehxw309aex2mrp0yhxgctdw4eju6t09uqzq8r9r4par63whq6px0af5uxtkkx0psydtamq6rdcva248l27l2szensns3
2025-12-18 12:03:42 -03:00
fiatjaf
4d7f7ce25d mmm: stats return real pubkeys, not only prefixes. 2025-12-17 22:27:08 -03:00
fiatjaf
bdef5ac224 khatru: fix possible race condition with authed keys. 2025-12-16 13:21:53 -03:00
fiatjaf
880b253d12 eventstore/mmm: stats. 2025-12-15 12:45:35 -03:00
fiatjaf
1176d12b0a nip05: use typed pubkeys. 2025-12-14 09:18:18 -03:00
fiatjaf
658a40e16c grasp: remove superfluous status code. 2025-12-12 21:24:48 -03:00
fiatjaf
7aa5da3897 nip29: support setting "restricted" and "hidden" via edit-metadata. 2025-12-12 14:12:03 -03:00
fiatjaf
34a509c9d7 grasp: pass request context to repoExists(). 2025-12-08 12:29:32 -03:00
fiatjaf
0706140491 add more *NotifyClosed variants. 2025-12-04 09:22:54 -03:00
fiatjaf
d5dc3abaf2 SubscribeManyNotifyClosed() 2025-12-04 08:51:34 -03:00
fiatjaf
eb2be4efe1 schema: fix parsing yaml as json, typo. 2025-12-03 22:35:26 -03:00
fiatjaf
b323ca1b73 khatru: expose GetAllAuthed() safe helper. 2025-12-03 19:31:23 -03:00
fiatjaf
0e76c95cba khatru: increase max tokens on default strict policy. 2025-12-03 16:13:54 -03:00
fiatjaf
2502299e9c schema: expose InUse and Description. 2025-12-03 15:49:04 -03:00
fiatjaf
427e393460 schema: fetchSchemaFromURL returns a parsed schema. 2025-12-03 11:43:16 -03:00
fiatjaf
836a0f9842 grasp: remove apparently useless usage of syscall.SysProcAttr as it breaks windows builds. 2025-12-01 21:22:26 -03:00
fiatjaf
91548fa0a1 khatru: set max negentropy limit to 20x the default max limit. 2025-12-01 20:28:30 -03:00
fiatjaf
b15ad71282 khatru: negentropy sessions take longer to close. 2025-12-01 18:28:02 -03:00
fiatjaf
668d6fc956 nip77: remove third-party syncing from last commit and expose stuff so it can be implemented elsewhere (nak) directly. 2025-12-01 18:08:55 -03:00
fiatjaf
15dc5b11aa nip77: third-party negentropy syncing hack. 2025-12-01 16:38:24 -03:00
fiatjaf
fb1603e062 grasp: repository path uses the pubkey now. 2025-12-01 10:03:01 -03:00
fiatjaf
020e4a8f56 grasp: spread stuff into multiple files. 2025-12-01 09:42:34 -03:00
fiatjaf
4b8fc31c23 grasp: return empty info-refs on both push and pull when repository wasn't created yet. 2025-11-30 22:41:31 -03:00
fiatjaf
e00f6dbc26 fix publisher test. 2025-11-30 22:41:31 -03:00
fiatjaf
fb3b14c69c eventstore: skip replacing when it's the exact same id. 2025-11-30 22:41:31 -03:00
fiatjaf
a355f27adb schema: timestamp type instead of numeric. 2025-11-30 20:50:49 -03:00
fiatjaf
7261a4b515 sdk: fix InputToProfile() to support nip05 again. 2025-11-26 09:04:47 -03:00
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