Commit Graph

14 Commits

Author SHA1 Message Date
fiatjaf
9933bb7865 khatru: fix multi-user auth stupid bug. 2025-09-06 23:26:55 -03:00
fiatjaf
fd53d7309f khatru: support multi-user auth. 2025-09-06 10:11:31 -03:00
fiatjaf
68b0caf2ab khatru: improve ephemeral ok message when handled internally. 2025-07-19 11:51:44 -03:00
fiatjaf
33838a4801 khatru: optional ChallengePrefix. 2025-07-17 16:46:44 -03:00
fiatjaf
840e2846ed khatru: fix eose waitgroup count for multiple filters. 2025-07-15 13:14:59 -03:00
fiatjaf
7289da9c72 improve/refactor websocket connections hoping this will fix the undetected disconnections we're seeing.
this commit also remove all the sonic envelope parsing and reintroduces filters in REQ as a slice instead of as a singleton.

why? well, the sonic stuff wasn't really that fast, it was a little bit but only got fast enough once I introduced unsafe conversions between []byte and string and did weird unsafe reuse of []byte in order to save the values of tags, which would definitely cause issues in the future if the caller wasn't aware of it (and even if they were, like myself).

and the filters stuff is because we abandoned the idea of changing NIP-01 to only accept one filter per REQ.
2025-07-10 22:58:37 -03:00
fiatjaf
bbffe45824 do not error with "mute" when there are ephemeral handlers. 2025-05-12 05:15:24 -03:00
fiatjaf
1ece6d0eab khatru: fix nip70 handling inverted conditional. 2025-05-03 11:56:38 -03:00
fiatjaf
15c6093c9b define a nostr.Kind type for event kinds, make adjustments everywhere and fix some horrible bugs with mmm, lmdb and badger querying and deleting. 2025-04-20 11:15:41 -03:00
fiatjaf
32efaa7c58 tests on root and khatru working. 2025-04-17 20:30:44 -03:00
fiatjaf
a7be696243 a bunch of conversions and api tweaks on khatru and eventstore. 2025-04-17 00:15:15 -03:00
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