Commit Graph

144 Commits

Author SHA1 Message Date
fiatjaf
d87066c9b9 sdk: eliminate all the data races go was complaining about. 2026-01-27 23:25:34 -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
7261a4b515 sdk: fix InputToProfile() to support nip05 again. 2025-11-26 09:04:47 -03:00
fiatjaf
55a43e46b7 use xhex everywhere. 2025-11-23 06:57:54 -03:00
fiatjaf
a78ad86b41 sdk: FetchNutZapInfo() using the same flow as FetchProfileMetadata(). 2025-10-26 17:32:29 -03:00
fiatjaf
a7b29c5c96 sdk: cached mint keys queries. 2025-10-26 16:45:50 -03:00
fiatjaf
3f1e013912 sdk: cached zap provider queries. 2025-10-24 23:11:42 -03:00
fiatjaf
776a82ba7f sdk: fix for invalid npub in InputToProfile() 2025-10-13 23:55:43 +00:00
fiatjaf
1e40fecdc2 sdk: when FetchSpecificEvent() can't find anything return nil and no errors. 2025-09-29 17:04:47 -03:00
fiatjaf
f69c78cba7 irrelevant minor things. 2025-09-29 16:20:19 -03:00
Jon Staab
113657314e Use ID in nip86.IDReason 2025-09-26 09:41:25 -03:00
fiatjaf
59bd3c29ff sdk: EraseAccessTime and EraseEventRelays. 2025-09-24 11:24:01 -03:00
fiatjaf
71978f2bc2 sdk: event access time kv helpers. 2025-09-24 09:14:58 -03:00
fiatjaf
805003b39b khatru: fix policy that requires nostr-prefix references. 2025-09-15 08:27:29 -03:00
fiatjaf
cd398b94b5 get rid of badger everywhere, including as an sdk/hints backend. 2025-09-04 00:35:17 -03:00
fiatjaf
80d0546ce6 we should be doing this since years ago: force an EOSE if the relay refuses to give us one. 2025-08-25 22:42:05 -03:00
fiatjaf
2875648ee3 handle wot filter error. 2025-07-24 13:25:08 -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
f4855dba4e BatchedSubManyEose => BatchedQueryMany 2025-05-12 09:25:02 -03:00
fiatjaf
f60fc08f8d eventstore: QueryEvents() to take a maxLimit param now so everything is clearer. 2025-05-11 09:36:59 -03:00
fiatjaf
c0934e0639 since and until are not pointers anymore because that is too annoying. 2025-05-08 09:32:54 -03:00
fiatjaf
a58015b3e9 sdk: FetchSpecificEvent takes an option SaveToLocalStore that defaults to false. 2025-05-06 16:39:31 -03:00
fiatjaf
05bf7b9c4f sdk: more PrepareNote() tests. 2025-05-06 00:03:47 -03:00
fiatjaf
ce2148901d sdk: finish PrepareNote() 2025-05-05 23:38:23 -03:00
fiatjaf
3723924561 nip61: perhaps simplify the function signature and support specific source mints. 2025-05-05 16:56:22 -03:00
fiatjaf
aaf0740513 partial docs update. 2025-04-21 15:44:45 -03:00
fiatjaf
59bddab471 sdk/hints: silence badger logger. 2025-04-21 10:26:33 -03:00
fiatjaf
110ff7624f sdk: get rid of With*** mods on NewSystem() 2025-04-21 10:13:29 -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
fb688575e8 sdk tests compile but not all pass yet. 2025-04-18 11:59:25 -03:00
fiatjaf
1c56906506 fix some pubkeys that were strings still. 2025-04-17 00:54:50 -03:00
fiatjaf
0130725321 sdk finally compiles. 2025-04-17 00:36:33 -03:00
fiatjaf
a7be696243 a bunch of conversions and api tweaks on khatru and eventstore. 2025-04-17 00:15:15 -03:00
fiatjaf
5b8954461f it never ends. 2025-04-16 02:59:47 -03:00
fiatjaf
cb0dd45a32 go mod tidy works now at least. 2025-04-15 18:40:56 -03:00
fiatjaf
2b5b646a62 a big bundle of conversions and other changes. 2025-04-15 17:13:57 -03:00
fiatjaf
376834cbf9 more conversions. 2025-04-15 00:00:03 -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
a90f9e61a2 sdk: prepare note for publication (wip). 2025-04-10 17:49:03 -03:00
fiatjaf
0fc00d8a68 sdk/hints: eliminate two unnecessary unsafe conversions on copy. 2025-04-07 15:14:56 -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
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