Commit Graph

952 Commits

Author SHA1 Message Date
fiatjaf 287d8c23c7 eventstore: add some basic tests. 2025-06-10 13:28:35 -03:00
fiatjaf e12f2b3f90 nip27: fix ws:// parsing. 2025-06-08 10:53:15 -03:00
fiatjaf 96125dd6f0 khatru: SendNotice() util. 2025-06-08 07:15:02 -03:00
fiatjaf 9cad1f0a5b evenstore/mmm: fix wrong limit being read in queries. 2025-06-08 07:14:48 -03:00
fiatjaf 7a1292b58b handle files declared as .apk as .apk. 2025-06-03 19:01:18 -03:00
fiatjaf 28f85c9ea3 fix sending request header. 2025-05-30 10:09:03 -03:00
fiatjaf ba91afc128 Pointer cannot hold a pointer so it can't be a hidden nil. 2025-05-25 15:58:18 -03:00
fiatjaf f38ce069a9 fix type assertions from [32]byte to nostr.PubKey or nostr.ID. 2025-05-22 08:52:45 -03:00
fiatjaf d3fb25441a nip19: EncodeNsec should not return an error. 2025-05-20 23:21:39 -03:00
fiatjaf dec141b52e fix easyjson event encoding quotes. 2025-05-17 21:43:21 -03:00
fiatjaf 81fd999a8d fix tests in a bunch of places. 2025-05-17 10:43:30 -03:00
fiatjaf df5f42aa5e remove unnecessary nil check. 2025-05-17 10:32:17 -03:00
fiatjaf 29cf3c7c6e simplify easyjson even more, rename functions, assume ids and pubkeys will always be safe hex strings that do not need to be escaped and eliminate unnecessary variables that would probably be eliminated by the compiler anyway. 2025-05-15 15:01:51 -03:00
fiatjaf 16aa5c95f3 simplify easyjson parser logic by assuming there will be no nulls. 2025-05-15 14:00:03 -03:00
fiatjaf a37b513477 nipb0/blossom: UploadFile() -> UploadBlob(), os.File is a io.ReadSeeker. 2025-05-14 23:41:09 -03:00
fiatjaf f9e2907a97 fix GetTheoreticalLimit() buggy logic. 2025-05-12 12:23:24 -03:00
fiatjaf 7b1f4ae49a fix types so tests compile. 2025-05-12 10:18:06 -03:00
fiatjaf f4855dba4e BatchedSubManyEose => BatchedQueryMany 2025-05-12 09:25:02 -03:00
fiatjaf 6d44b5b0dc pool.BatchedSubscribeMany() 2025-05-12 06:13:21 -03:00
fiatjaf 65411a10c8 eventstore: fix maxLimit handling when filter.Limit is unset. 2025-05-12 06:12:58 -03:00
fiatjaf 9a0b263ecc keyer: New() to deal slightly better with hex secret keys. 2025-05-12 05:59:55 -03:00
fiatjaf 3f436d2a86 nip13: fix leading zeroes check (remainings from hex era). 2025-05-12 05:59:21 -03:00
fiatjaf 94d29f1230 nip77: convert to dealing with bytes instead of hex strings.
it was cool but this should be faster and less confusing.
2025-05-12 05:54:40 -03:00
fiatjaf bbffe45824 do not error with "mute" when there are ephemeral handlers. 2025-05-12 05:15:24 -03:00
fiatjaf 4befaa0129 nip11, nip13, nip46 changes from promenade port.
and verify pubkey validity when decoding it from an arbitrary json object.
2025-05-11 17:42:19 -03:00
fiatjaf f60fc08f8d eventstore: QueryEvents() to take a maxLimit param now so everything is clearer. 2025-05-11 09:36:59 -03:00
sudocarlos 9118217048 khatru/blossom: implement BUD-05 without optimizations 2025-05-09 15:20:39 -03:00
sudocarlos ce382bbc47 khatru/blossom: return content-type in handleUpload() 2025-05-09 15:18:21 -03:00
fiatjaf adf874ca2e khatru: change name and signature of relay management main authorization hook. 2025-05-08 23:31:26 -03:00
fiatjaf cda69b52a1 eventstore/mmm: fix query by id wrong size check. 2025-05-08 13:11:25 -03:00
fiatjaf cafcfc6bcc khatru: fix GetAuthed() boolean return value. 2025-05-08 12:36:55 -03:00
fiatjaf c0934e0639 since and until are not pointers anymore because that is too annoying. 2025-05-08 09:32:54 -03:00
pippellia-btc 0853405c03 probably fixing race condition. 2025-05-07 10:34:05 -03:00
fiatjaf a983fc74b5 nip60: fix receive logic so we can't be easily tricked. 2025-05-06 16:39:38 -03:00
fiatjaf 93745cafff nip60: fix spending conditions over SendExternal() and SendInternal() 2025-05-06 16:39:34 -03:00
fiatjaf a58015b3e9 sdk: FetchSpecificEvent takes an option SaveToLocalStore that defaults to false. 2025-05-06 16:39:31 -03:00
fiatjaf 0d99789a54 khatru/blossom: implement bud-04 mirror. 2025-05-06 00:15:45 -03:00
fiatjaf 05bf7b9c4f sdk: more PrepareNote() tests. 2025-05-06 00:03:47 -03:00
fiatjaf b84d99ac06 fix tag cloning and remove postgres-specific interface. 2025-05-05 23:45:33 -03:00
fiatjaf ce2148901d sdk: finish PrepareNote() 2025-05-05 23:38:23 -03:00
fiatjaf 0ae2316523 use IndexByte instead of IndexRune everywhere because it's faster. 2025-05-05 23:37:43 -03:00
fiatjaf 3723924561 nip61: perhaps simplify the function signature and support specific source mints. 2025-05-05 16:56:22 -03:00
fiatjaf b711548b03 nip60: use more reasonable options instead of the crazy WithWhatever() pattern. 2025-05-05 16:36:44 -03:00
fiatjaf fcea4f1b15 nip42: fix panic when there is no "relay" tag. 2025-05-05 11:52:42 -03:00
fiatjaf 3f87ec329d reduce pool.EnsureRelay() timeout to 7s. 2025-05-04 20:21:33 -03:00
fiatjaf a2e05e6f3d nip44: simplify slightly. 2025-05-04 19:24:27 -03:00
fiatjaf f0b3da78ef khatru: upgrade docs a little more. 2025-05-03 11:56:38 -03:00
fiatjaf 1ece6d0eab khatru: fix nip70 handling inverted conditional. 2025-05-03 11:56:38 -03:00
fiatjaf d59692781d test for json marshaling of ids and pubkeys. 2025-05-03 11:56:38 -03:00
fiatjaf 32360a4657 fix libsecp256k1 VerifySignature() method. 2025-05-03 11:56:37 -03:00