Commit Graph

874 Commits

Author SHA1 Message Date
fiatjaf
2b5b646a62 a big bundle of conversions and other changes. 2025-04-15 17:13:57 -03:00
fiatjaf
f493293be2 update import paths. 2025-04-15 08:51:25 -03:00
fiatjaf
76032dc089 bring in khatru and eventstore. 2025-04-15 08:49:28 -03:00
fiatjaf
8466a9757b delete nip96. 2025-04-15 00:00:21 -03:00
fiatjaf
376834cbf9 more conversions. 2025-04-15 00:00:03 -03:00
fiatjaf
f9e4a5efa3 use .UnsafeBytes() on easyjson since we're decoding hex anyway. 2025-04-14 21:45:33 -03:00
fiatjaf
67cb0ea8fb this was missing? 2025-04-14 17:48:59 -03:00
fiatjaf
b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
Kay
40535e6b19 feat(nip11): update to nips pr nostr-protocol/nip#1821 2025-04-13 14:15:43 -03:00
fiatjaf
b6f0e46a85 nip45: support kind:1111 comment counts. 2025-04-10 23:06:26 -03:00
fiatjaf
a90f9e61a2 sdk: prepare note for publication (wip). 2025-04-10 17:49:03 -03:00
fiatjaf
5e650f27ff nip77: fix envelope parsing. 2025-04-08 12:22:17 -03:00
fiatjaf
dad99b226c relay: fix unsafe overwriting of event buffer that affected parsed pubkeys, ids, content. 2025-04-07 15:56:36 -03:00
fiatjaf
0fc00d8a68 sdk/hints: eliminate two unnecessary unsafe conversions on copy. 2025-04-07 15:14:56 -03:00
fiatjaf
ed0c6534da nip27: fix for contents that end in broken strings. 2025-04-07 15:10:58 -03:00
fiatjaf
14beb34363 sdk: hint tracker to use new nip27 parser. 2025-04-06 13:33:30 -03:00
fiatjaf
a88b34ed3c sdk/hints: simplify memory. 2025-04-06 11:56:48 -03:00
fiatjaf
2e28cc809a sdk/hints: HintsDB.GetDetailedScores() 2025-04-06 11:47:08 -03:00
fiatjaf
05e2018d3a exit BatchedSubManyEose() immediately as the context expires.
I'm not sure about this, but seems to work.
2025-04-06 09:40:54 -03:00
fiatjaf
bba332aea6 pool: pre-update seenAlready atomically so there is no risk of the same event being parsed and dispatched twice racily. 2025-04-06 09:40:32 -03:00
fiatjaf
198dc6ebda fix (break) sys.FetchWriteRelays() signature. 2025-04-04 23:40:27 -03:00
fiatjaf
087e6c220a sdk: include level1 follows in the wot. 2025-04-04 14:34:16 -03:00
fiatjaf
72eeabd2f4 sdk: wot knows its size. 2025-04-04 14:32:08 -03:00
fiatjaf
4705719c76 sdk: fix wot filter. 2025-04-04 13:47:39 -03:00
fiatjaf
c3cfb21097 sdk: replaceable loader checks if result exists first on map. 2025-04-03 23:25:59 -03:00
fiatjaf
f3ef256e65 sdk: wot xor filter has a proper .Contains() function. 2025-04-03 23:25:08 -03:00
fiatjaf
1ccd9ba417 pool.PublishMany() runs in parallel. 2025-04-03 23:24:13 -03:00
fiatjaf
b48d2249b9 small things. 2025-04-03 00:24:16 -03:00
fiatjaf
0d5daf66bf sdk: beginnings of basic wot helpers. 2025-03-28 21:49:26 -03:00
fiatjaf
6fc68dc039 nip70: HasEmbeddedProtected() 2025-03-28 17:41:41 -03:00
fiatjaf
a60e225a5f sdk/dataloader simplify and fix lock issues, now it will work. 2025-03-28 17:41:41 -03:00
fiatjaf
d1fca24cc3 sdk/dataloader: fix lock around reset()/create new batch logic. 2025-03-25 19:45:17 -03:00
fiatjaf
15d946dad8 sdk: update list of fallback relays. 2025-03-25 17:37:47 -03:00
fiatjaf
ca9c2d7c57 sdk/hints: add lmdb implementation. 2025-03-25 17:06:28 -03:00
fiatjaf
a1e2a46b5b sdk/hints: add badger implementation. 2025-03-25 17:00:37 -03:00
fiatjaf
1544d90354 split up serializeEvent() 2025-03-24 15:54:08 -03:00
fiatjaf
e18528c043 move ExternalPointer to nip73 and write nip27.Parse() that gets all the parts of the text including URLs, Nostr URIs and just raw text. 2025-03-24 15:50:10 -03:00
fiatjaf
3ebfc7812b sdk: simplified dataloader event more. should be faster. 2025-03-24 15:50:10 -03:00
fiatjaf
78dbf9def5 use our own dataloader and simplify batch replaceable requests, removing bugs. 2025-03-24 15:50:10 -03:00
pippellia-btc
25838a024e added lenght check 2025-03-24 15:39:54 -03:00
fiatjaf
c1d9c094ee get rid of base64x temporarily since it doesn't work on arm64. 2025-03-19 14:59:49 -03:00
fiatjaf
7c9c5d7cd9 fix unsafe strings that change underneath us on envelope parsing by force-copying them as gjson doesn't. 2025-03-14 21:09:33 -03:00
fiatjaf
c64ebde59d fix sonic parsing req envelopes with limit/since/until. 2025-03-14 20:08:56 -03:00
fiatjaf
4dcadd4d88 update go version so we can use the new benchmarking helper. 2025-03-13 18:57:30 -03:00
fiatjaf
1b610ba318 khatru string transition 2025-03-12 00:55:08 -03:00
fiatjaf
cc23d81e80 pool's .FetchManyReplaceable() and amends to previous commit. 2025-03-12 00:49:58 -03:00
fiatjaf
441f94563f WithCheckDuplicateReplaceable() and helper functions for efficient replaceable event matching. 2025-03-12 00:19:41 -03:00
fiatjaf
d2ceac48f6 sdk: FetchWriteRelays() shouldn't have a hardcoded fallback, it's better to fail. 2025-03-12 00:18:41 -03:00
fiatjaf
cecc71cd81 fix and improve envelope stuff again, deal with messages as strings on all envelope parsing steps. 2025-03-12 00:18:11 -03:00
fiatjaf
42a2243b72 tags Clone() and CloneDeep() 2025-03-11 16:35:51 -03:00