Commit Graph

  • 3f436d2a86 nip13: fix leading zeroes check (remainings from hex era). fiatjaf 2025-05-12 05:59:21 -03:00
  • 94d29f1230 nip77: convert to dealing with bytes instead of hex strings. fiatjaf 2025-05-12 05:54:39 -03:00
  • bbffe45824 do not error with "mute" when there are ephemeral handlers. fiatjaf 2025-05-12 05:15:24 -03:00
  • 4befaa0129 nip11, nip13, nip46 changes from promenade port. fiatjaf 2025-05-11 17:42:15 -03:00
  • f60fc08f8d eventstore: QueryEvents() to take a maxLimit param now so everything is clearer. fiatjaf 2025-05-11 09:36:59 -03:00
  • 9118217048 khatru/blossom: implement BUD-05 without optimizations sudocarlos 2025-05-09 15:20:19 -03:00
  • ce382bbc47 khatru/blossom: return content-type in handleUpload() sudocarlos 2025-05-09 15:18:21 -03:00
  • adf874ca2e khatru: change name and signature of relay management main authorization hook. fiatjaf 2025-05-08 23:31:26 -03:00
  • cda69b52a1 eventstore/mmm: fix query by id wrong size check. fiatjaf 2025-05-08 13:11:25 -03:00
  • cafcfc6bcc khatru: fix GetAuthed() boolean return value. fiatjaf 2025-05-08 12:36:55 -03:00
  • c0934e0639 since and until are not pointers anymore because that is too annoying. fiatjaf 2025-05-08 09:32:54 -03:00
  • 0853405c03 probably fixing race condition. pippellia-btc 2025-05-07 10:34:05 -03:00
  • a983fc74b5 nip60: fix receive logic so we can't be easily tricked. fiatjaf 2025-05-06 16:39:21 -03:00
  • 93745cafff nip60: fix spending conditions over SendExternal() and SendInternal() fiatjaf 2025-05-06 16:24:51 -03:00
  • a58015b3e9 sdk: FetchSpecificEvent takes an option SaveToLocalStore that defaults to false. fiatjaf 2025-05-06 11:57:15 -03:00
  • 0d99789a54 khatru/blossom: implement bud-04 mirror. fiatjaf 2025-05-06 00:15:45 -03:00
  • 05bf7b9c4f sdk: more PrepareNote() tests. fiatjaf 2025-05-06 00:03:47 -03:00
  • b84d99ac06 fix tag cloning and remove postgres-specific interface. fiatjaf 2025-05-05 23:45:33 -03:00
  • ce2148901d sdk: finish PrepareNote() fiatjaf 2025-05-05 23:38:23 -03:00
  • 0ae2316523 use IndexByte instead of IndexRune everywhere because it's faster. fiatjaf 2025-05-05 23:37:43 -03:00
  • 3723924561 nip61: perhaps simplify the function signature and support specific source mints. fiatjaf 2025-05-05 16:56:20 -03:00
  • b711548b03 nip60: use more reasonable options instead of the crazy WithWhatever() pattern. fiatjaf 2025-05-05 16:36:44 -03:00
  • fcea4f1b15 nip42: fix panic when there is no "relay" tag. fiatjaf 2025-05-05 11:52:42 -03:00
  • 3f87ec329d reduce pool.EnsureRelay() timeout to 7s. fiatjaf 2025-05-04 20:21:33 -03:00
  • a2e05e6f3d nip44: simplify slightly. fiatjaf 2025-05-04 19:24:27 -03:00
  • f0b3da78ef khatru: upgrade docs a little more. fiatjaf 2025-05-02 23:52:49 -03:00
  • 1ece6d0eab khatru: fix nip70 handling inverted conditional. fiatjaf 2025-05-02 23:17:37 -03:00
  • d59692781d test for json marshaling of ids and pubkeys. fiatjaf 2025-05-02 19:45:15 -03:00
  • 32360a4657 fix libsecp256k1 VerifySignature() method. fiatjaf 2025-05-02 18:46:48 -03:00
  • b81a6382d9 allow dangerously setting an absolute subscription id. fiatjaf 2025-05-02 15:20:15 -03:00
  • f23356ab45 blossom.UploadFilePath() and UploadFile() fiatjaf 2025-05-02 15:19:56 -03:00
  • 002dc1e84d allow custom CheckDuplicate in pool subscriptions. fiatjaf 2025-05-02 15:19:16 -03:00
  • b7989084f2 json marshaler/un for ids and pubkeys. fiatjaf 2025-05-02 15:19:02 -03:00
  • 80621fe547 khatru/docs: display fox. fiatjaf 2025-04-28 15:46:17 -03:00
  • 0845e5dd94 do not print a bunch of zeroes when serializing event pointers with empty author. fiatjaf 2025-04-24 15:39:07 -03:00
  • 9fe9146381 fix error message for secret key parsing. fiatjaf 2025-04-24 13:23:16 -03:00
  • 631ff67d52 nip46: fixes from nak bunker tests. fiatjaf 2025-04-22 08:37:34 -03:00
  • b92e70270d nip49: fix secret key return values. fiatjaf 2025-04-21 18:09:44 -03:00
  • bf436be0f7 fix secret key hex parsing zero-filler. fiatjaf 2025-04-21 15:44:22 -03:00
  • aaf0740513 partial docs update. fiatjaf 2025-04-21 12:12:11 -03:00
  • 59bddab471 sdk/hints: silence badger logger. fiatjaf 2025-04-21 10:26:33 -03:00
  • 46fba24b3e eliminate indirect go-nostr dependency. fiatjaf 2025-04-21 10:13:40 -03:00
  • 110ff7624f sdk: get rid of With*** mods on NewSystem() fiatjaf 2025-04-21 10:13:29 -03:00
  • 62e962454e pointer easyjson un/marshalers. fiatjaf 2025-04-21 09:27:36 -03:00
  • 3d595039cc fixes and tweaks from nak port work. fiatjaf 2025-04-21 08:35:19 -03:00
  • ee2d618285 fix negentropy tests. fiatjaf 2025-04-20 11:19:57 -03:00
  • 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. fiatjaf 2025-04-20 11:14:39 -03:00
  • 27f40c2cf2 remove nip90 because it is broken. fiatjaf 2025-04-19 18:07:37 -03:00
  • fb688575e8 sdk tests compile but not all pass yet. fiatjaf 2025-04-18 11:59:25 -03:00
  • 92c2de6294 eventstore tests. fiatjaf 2025-04-18 11:27:22 -03:00
  • 32efaa7c58 tests on root and khatru working. fiatjaf 2025-04-17 20:30:44 -03:00
  • 1c56906506 fix some pubkeys that were strings still. fiatjaf 2025-04-17 00:54:50 -03:00
  • 0130725321 sdk finally compiles. fiatjaf 2025-04-17 00:36:33 -03:00
  • a7be696243 a bunch of conversions and api tweaks on khatru and eventstore. fiatjaf 2025-04-17 00:08:36 -03:00
  • f7884cea4f wait, Querier can just return an iter like eventstore, it's ok. fiatjaf 2025-04-16 03:06:27 -03:00
  • 5b8954461f it never ends. fiatjaf 2025-04-16 02:59:47 -03:00
  • cb0dd45a32 go mod tidy works now at least. fiatjaf 2025-04-15 18:39:14 -03:00
  • 2b5b646a62 a big bundle of conversions and other changes. fiatjaf 2025-04-15 17:13:57 -03:00
  • f493293be2 update import paths. fiatjaf 2025-04-15 08:51:25 -03:00
  • 76032dc089 bring in khatru and eventstore. fiatjaf 2025-04-15 08:49:28 -03:00
  • 8466a9757b delete nip96. fiatjaf 2025-04-15 00:00:21 -03:00
  • 376834cbf9 more conversions. fiatjaf 2025-04-15 00:00:03 -03:00
  • f9e4a5efa3 use .UnsafeBytes() on easyjson since we're decoding hex anyway. fiatjaf 2025-04-14 21:45:26 -03:00
  • 67cb0ea8fb this was missing? fiatjaf 2025-04-03 18:59:22 -03:00
  • b4268d649c a bunch of [32]byte conversions. still more needed. fiatjaf 2025-04-14 17:31:23 -03:00
  • 40535e6b19 feat(nip11): update to nips pr nostr-protocol/nip#1821 Kay 2025-03-25 14:37:14 +00:00
  • b6f0e46a85 nip45: support kind:1111 comment counts. fiatjaf 2025-04-10 23:06:26 -03:00
  • a90f9e61a2 sdk: prepare note for publication (wip). fiatjaf 2025-04-10 17:49:01 -03:00
  • 5e650f27ff nip77: fix envelope parsing. fiatjaf 2025-04-08 12:22:17 -03:00
  • dad99b226c relay: fix unsafe overwriting of event buffer that affected parsed pubkeys, ids, content. fiatjaf 2025-04-07 15:56:36 -03:00
  • 0fc00d8a68 sdk/hints: eliminate two unnecessary unsafe conversions on copy. fiatjaf 2025-04-07 15:14:56 -03:00
  • ed0c6534da nip27: fix for contents that end in broken strings. fiatjaf 2025-04-07 15:10:58 -03:00
  • 14beb34363 sdk: hint tracker to use new nip27 parser. fiatjaf 2025-04-06 13:33:25 -03:00
  • a88b34ed3c sdk/hints: simplify memory. fiatjaf 2025-04-06 11:56:48 -03:00
  • 2e28cc809a sdk/hints: HintsDB.GetDetailedScores() fiatjaf 2025-04-06 11:47:08 -03:00
  • 05e2018d3a exit BatchedSubManyEose() immediately as the context expires. fiatjaf 2025-04-06 09:40:53 -03:00
  • bba332aea6 pool: pre-update seenAlready atomically so there is no risk of the same event being parsed and dispatched twice racily. fiatjaf 2025-04-06 09:40:19 -03:00
  • 198dc6ebda fix (break) sys.FetchWriteRelays() signature. fiatjaf 2025-04-04 23:40:27 -03:00
  • 087e6c220a sdk: include level1 follows in the wot. fiatjaf 2025-04-04 14:34:16 -03:00
  • 72eeabd2f4 sdk: wot knows its size. fiatjaf 2025-04-04 14:32:08 -03:00
  • 4705719c76 sdk: fix wot filter. fiatjaf 2025-04-04 12:58:32 -03:00
  • c3cfb21097 sdk: replaceable loader checks if result exists first on map. fiatjaf 2025-04-03 23:25:59 -03:00
  • f3ef256e65 sdk: wot xor filter has a proper .Contains() function. fiatjaf 2025-04-03 23:25:08 -03:00
  • 1ccd9ba417 pool.PublishMany() runs in parallel. fiatjaf 2025-04-03 23:24:13 -03:00
  • b48d2249b9 small things. fiatjaf 2025-04-03 00:23:26 -03:00
  • 0d5daf66bf sdk: beginnings of basic wot helpers. fiatjaf 2025-03-28 21:49:26 -03:00
  • 6fc68dc039 nip70: HasEmbeddedProtected() fiatjaf 2025-03-26 12:56:55 -03:00
  • a60e225a5f sdk/dataloader simplify and fix lock issues, now it will work. fiatjaf 2025-03-26 00:58:19 -03:00
  • d1fca24cc3 sdk/dataloader: fix lock around reset()/create new batch logic. fiatjaf 2025-03-25 19:45:15 -03:00
  • 15d946dad8 sdk: update list of fallback relays. fiatjaf 2025-03-25 17:37:47 -03:00
  • ca9c2d7c57 sdk/hints: add lmdb implementation. fiatjaf 2025-03-25 17:06:28 -03:00
  • a1e2a46b5b sdk/hints: add badger implementation. fiatjaf 2025-03-25 17:00:37 -03:00
  • 1544d90354 split up serializeEvent() fiatjaf 2025-03-24 15:54:08 -03:00
  • 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. fiatjaf 2025-03-21 23:43:23 -03:00
  • 3ebfc7812b sdk: simplified dataloader event more. should be faster. fiatjaf 2025-03-20 20:54:51 -03:00
  • 78dbf9def5 use our own dataloader and simplify batch replaceable requests, removing bugs. fiatjaf 2025-03-20 19:37:37 -03:00
  • 25838a024e added lenght check pippellia-btc 2025-03-20 12:35:40 +01:00
  • c1d9c094ee get rid of base64x temporarily since it doesn't work on arm64. fiatjaf 2025-03-19 14:59:48 -03:00
  • 7c9c5d7cd9 fix unsafe strings that change underneath us on envelope parsing by force-copying them as gjson doesn't. fiatjaf 2025-03-14 21:09:33 -03:00
  • c64ebde59d fix sonic parsing req envelopes with limit/since/until. fiatjaf 2025-03-14 20:08:56 -03:00