833 Commits

Author SHA1 Message Date
fiatjaf
56e9a5a709 implement envelope, event and filter parsing with simdjson-go. 2025-02-25 17:57:15 -03:00
fiatjaf
6d8cd55784 fix and use a supposedly much faster library on NormalizeURL(), it's slightly less tolerant with stupidly-formed URLs. 2025-02-25 09:55:19 -03:00
fiatjaf
7e06354b6f nip11: catch invalid/small urls. 2025-02-25 08:26:59 -03:00
fiatjaf
c98b2ea67e nip23: support tables. 2025-02-23 06:51:15 -03:00
fiatjaf
6be0541653 nip19: EncodePointer() v0.50.0 2025-02-17 16:00:08 -03:00
fiatjaf
fec4524324 sdk: FetchSpecificEvent() takes options. 2025-02-16 18:45:29 -03:00
fiatjaf
00c22b0b77 maybe fix logic for closing waitgroup in subMany() 2025-02-16 18:45:09 -03:00
fiatjaf
7412a6fb40 use atomic eosed bool in subMany() 2025-02-16 17:36:05 -03:00
fiatjaf
b437cc6a1f remove useless noswhere.com from list of id-only relays. 2025-02-16 11:53:41 -03:00
fiatjaf
1685a3ae09 Pointer.AsFilter() 2025-02-16 11:53:26 -03:00
fiatjaf
6f5737a763 pointers from tags helpers. 2025-02-13 23:05:39 -03:00
fiatjaf
c37ed1a309 pool: deprecate methods that take more than one filter. 2025-02-12 16:28:35 -03:00
fiatjaf
332a1642f0 nip77: FetchIDsOnly() v0.49.7 2025-02-12 15:45:52 -03:00
fiatjaf
1f36d7a9f1 increase websocket message limit to an absurd of 33MB. 2025-02-12 15:42:00 -03:00
fiatjaf
e0ed40613d pool: bug that was causing a SubMany() to close if any of the relays failed to connect.
fixes https://github.com/nbd-wtf/go-nostr/issues/172
v0.49.6
2025-02-12 14:32:33 -03:00
fiatjaf
3de002aca1 sdk: only instantiate caches by default when they are necessary. 2025-02-11 14:23:31 -03:00
Kay
7189cd7e02 add banner to nip-11. 2025-02-10 09:28:23 -03:00
fiatjaf
a8d6e1f37f sdk: adjust test expected relay. 2025-02-09 18:12:27 -03:00
fiatjaf
d07cccdd45 nip27 parsing improved (and with nip08 support removed) in its own package. 2025-02-09 18:01:45 -03:00
Kay
7df4cdcb4f nip-86: stat. 2025-02-08 09:51:17 -03:00
Kay
fcc231e9d7 nip-86: update methods. 2025-02-08 09:51:17 -03:00
fiatjaf
fcf01fcbf6 pool's PaginatorWithTimeout() helper. v0.49.5 2025-02-07 18:02:34 -03:00
fiatjaf
0ea7fd95f3 QuerySingle() to take opts. 2025-02-07 18:02:19 -03:00
fiatjaf
f19efb4013 nip19: helper for building nevent from RelayEvent. 2025-02-07 18:02:05 -03:00
fiatjaf
1b31dd892e nip61: verify dleq and sum tokens from nutzaps. 2025-02-06 15:03:09 -03:00
fiatjaf
bce95327d4 nip60: expose ParseKeysetKeys() 2025-02-06 15:02:49 -03:00
fiatjaf
41b7261735 nip60: upon receive do not swap into mints unless explicitly asked for. 2025-02-05 16:33:10 -03:00
fiatjaf
0330c198fb nip60: expose GetSatoshisAmountFromBolt11() helper. v0.49.4 2025-02-05 13:20:41 -03:00
fiatjaf
26da7967dc sdk: decrease interval between replaceable lists and sets refetch attempts conditionally. 2025-02-04 19:27:57 -03:00
fiatjaf
0ccc1b8e9c meaningless optimizations. 2025-02-04 17:52:05 -03:00
fiatjaf
1e4848d84d nip61 and nip60 improvements and fixes. v0.49.3 2025-02-04 13:43:18 -03:00
fiatjaf
48ce669a3d sdk: increase sanity threshold of relay lists. 2025-02-04 10:33:28 -03:00
fiatjaf
e7432baeba nip60: fix a bunch of stupid bugs. 2025-02-04 10:25:13 -03:00
fiatjaf
3c0f4a723a nip60/nip61: update to latest nip changes.
(a single default wallet, always default to sats, no names etc)
2025-02-03 17:22:10 -03:00
fiatjaf
8446557788 debug log relay reconnections. 2025-02-03 10:35:42 -03:00
fiatjaf
d0f53b3b7a nip61, and related modifications to nip60. 2025-02-03 10:34:31 -03:00
fiatjaf
c9f670d700 sdk: FetchWriteRelays() and comments explaining these relay functions. 2025-01-31 22:48:12 -03:00
fiatjaf
3f901954e6 nip60: emit history. 2025-01-31 15:20:41 -03:00
fiatjaf
b1571e0253 sdk: fix FetchFeedPage()
I'm not sure if it was even wrong before, but now at least I understand it and is checked against pen and paper.
2025-01-31 14:27:44 -03:00
fiatjaf
4200144489 nip60: fix mutex double-lock issue when saving change. v0.49.2 2025-01-30 19:56:30 -03:00
fiatjaf
2b9c50a220 nip60: EnsureWallet() publishes an update if a wallet wasn't found. 2025-01-30 16:10:53 -03:00
fiatjaf
14c4101a03 nip60: Processed is also a function now. 2025-01-30 16:10:53 -03:00
fiatjaf
b86d5d52bb nip60: Changes channel is a PublishUpdate hook now that must be set, to prevent unpublished updates -- and also now updates have more metadata so the client can display more info about them. 2025-01-30 10:32:23 -03:00
fiatjaf
f0054af4d8 nip60: just rely on nut08 overpaid fees to get change when melting, don't try to swap beforehand. 2025-01-30 09:45:00 -03:00
fiatjaf
be65134354 nip60: an e2e test with two wallets sending tokens around, but it's broken. v0.49.1 2025-01-29 22:17:57 -03:00
fiatjaf
4ca8320e18 actually this is the real fix. 2025-01-29 22:12:42 -03:00
fiatjaf
181234d774 fix SubMany() global eosed tracking and SubManyNotifyEOSE() proper notification. 2025-01-29 21:36:08 -03:00
fiatjaf
78a9411d8a nip60: prevent duplicate token entries after doing some operation. 2025-01-29 21:23:15 -03:00
fiatjaf
37db1c924a nip60: fixes to pay and stuff because it was very broken. 2025-01-29 21:11:13 -03:00
fiatjaf
7c04b497ec nip60: wallet.PayBolt11() 2025-01-29 14:55:07 -03:00