Commit Graph

929 Commits

Author SHA1 Message Date
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
fiatjaf
b81a6382d9 allow dangerously setting an absolute subscription id. 2025-05-03 11:56:37 -03:00
fiatjaf
f23356ab45 blossom.UploadFilePath() and UploadFile() 2025-05-03 11:56:37 -03:00
fiatjaf
002dc1e84d allow custom CheckDuplicate in pool subscriptions. 2025-05-02 15:19:16 -03:00
fiatjaf
b7989084f2 json marshaler/un for ids and pubkeys. 2025-05-02 15:19:02 -03:00
fiatjaf
80621fe547 khatru/docs: display fox. 2025-04-28 15:46:17 -03:00
fiatjaf
0845e5dd94 do not print a bunch of zeroes when serializing event pointers with empty author. 2025-04-24 15:39:16 -03:00
fiatjaf
9fe9146381 fix error message for secret key parsing. 2025-04-24 13:23:16 -03:00
fiatjaf
631ff67d52 nip46: fixes from nak bunker tests. 2025-04-22 08:37:34 -03:00
fiatjaf
b92e70270d nip49: fix secret key return values. 2025-04-21 18:09:44 -03:00
fiatjaf
bf436be0f7 fix secret key hex parsing zero-filler. 2025-04-21 15:44:45 -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
46fba24b3e eliminate indirect go-nostr dependency. 2025-04-21 10:13:40 -03:00
fiatjaf
110ff7624f sdk: get rid of With*** mods on NewSystem() 2025-04-21 10:13:29 -03:00
fiatjaf
62e962454e pointer easyjson un/marshalers. 2025-04-21 10:03:47 -03:00
fiatjaf
3d595039cc fixes and tweaks from nak port work. 2025-04-21 08:35:19 -03:00
fiatjaf
ee2d618285 fix negentropy tests. 2025-04-20 11:19:57 -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
27f40c2cf2 remove nip90 because it is broken. 2025-04-19 18:07:37 -03:00
fiatjaf
fb688575e8 sdk tests compile but not all pass yet. 2025-04-18 11:59:25 -03:00
fiatjaf
92c2de6294 eventstore tests. 2025-04-18 11:29:31 -03:00
fiatjaf
32efaa7c58 tests on root and khatru working. 2025-04-17 20:30:44 -03:00
fiatjaf
1c56906506 fix some pubkeys that were strings still. 2025-04-17 00:54:50 -03:00