Commit Graph

1068 Commits

Author SHA1 Message Date
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
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
f7884cea4f wait, Querier can just return an iter like eventstore, it's ok. 2025-04-16 03:06:27 -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
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
fiatjaf
8466a9757b delete nip96. 2025-04-15 00:00:21 -03:00
fiatjaf
376834cbf9 more conversions. 2025-04-15 00:00:03 -03:00
fiatjaf
f9e4a5efa3 use .UnsafeBytes() on easyjson since we're decoding hex anyway. 2025-04-14 21:45:33 -03:00