Commit Graph

  • 1e76aec884 nip60: fix receive proof saving, send nil to Processed, do a dedicated kind:5 filter, hack for initial processing race condition. fiatjaf 2025-01-28 23:47:35 -03:00
  • 794561a3b3 nip60: slight improvement to lightning melt-mint flow. fiatjaf 2025-01-28 23:28:13 -03:00
  • 2244740f61 nip60: make it work with emitting events to be published dynamically and stuff. fiatjaf 2025-01-28 19:11:18 -03:00
  • 07b9b3e439 nip60: small fixes. fiatjaf 2025-01-28 16:48:44 -03:00
  • edb2f782cf pool.SubManyNotifyEOSE() fiatjaf 2025-01-28 16:12:53 -03:00
  • 7eba27f026 nip60: wallet.SendToken() and wallet.SwapProofs() fiatjaf 2025-01-28 15:24:58 -03:00
  • bfc85a45a4 Fix nil pointer error in filter within sdk/feeds Josh Floth 2025-01-27 20:47:08 -06:00
  • 9c4c6529c9 nip60: make client better, fixes to receive flow, wallet helper methods. fiatjaf 2025-01-27 22:11:45 -03:00
  • c6747cdf44 nip60: fixes, actual Cashu stuff and a wallet.Receive() method. fiatjaf 2025-01-27 16:33:33 -03:00
  • 3334f7a48b implement nip60 events. fiatjaf 2025-01-25 22:21:39 -03:00
  • 17431dee59 do not close relay connection when ping fails because some relays just do not pong. fiatjaf 2025-01-25 00:26:36 -03:00
  • 6daecc8bd2 sdk/hints: ok, we must have the db created wrongly first before we migrate it. fiatjaf 2025-01-25 00:21:01 -03:00
  • 1ff5647b2d sdk/hints: implement sql migrations. fiatjaf 2025-01-25 00:15:28 -03:00
  • 501b2a7679 sdk: FetchInboxRelays() fiatjaf 2025-01-24 14:35:24 -03:00
  • e69eeb8938 nip10: rename GetImmediateReply() -> GetImmediateParent(). fiatjaf 2025-01-23 17:52:26 -03:00
  • 550cf835be pointer.MatchesEvent() fiatjaf 2025-01-23 16:53:15 -03:00
  • 2d941907e3 sdk: fix fetching specific event from note1 codes. fiatjaf 2025-01-23 14:44:36 -03:00
  • 8d805b39bf sdk: fix missing preemptive fallback to blank pubkey on FetchProfileMetadata(). fiatjaf 2025-01-23 14:41:04 -03:00
  • 85c268b8e2 sdk: fix for when we have no record of ever trying to fetch replaceables. fiatjaf 2025-01-21 17:41:28 -03:00
  • df6aaa3ad3 sdk: test for feeds and a fix. fiatjaf 2025-01-20 13:40:26 -03:00
  • f992c6e7ea sdk: pubkey feeds, live and past pages. fiatjaf 2025-01-20 12:59:27 -03:00
  • 40538486d5 sdk/hints: use a single "hint" type instead of nprofile/nevent/tag/nip05. fiatjaf 2025-01-18 18:19:54 -03:00
  • 6cffcc3b47 sdk: make it so replaceable stuff is automatically reloaded from time to time. fiatjaf 2025-01-17 18:21:19 -03:00
  • 3fd33ce281 fix locking on generic list and set fetching, decrease dataloader batch size, test. fiatjaf 2025-01-17 17:39:24 -03:00
  • 3e1c0ddc7e fix pinging relays: use the main relay context, not the relay connection temporary context. fiatjaf 2025-01-17 14:08:54 -03:00
  • 06a15fdaab follow list fetching test and related changes and fixes. fiatjaf 2025-01-17 13:44:50 -03:00
  • adb97d46a7 NormalizeURL() shouldn't lowercase paths. fiatjaf 2025-01-16 20:08:49 -03:00
  • 7be028ff7c sdk: test and fix encode/decode relay lists. fiatjaf 2025-01-16 17:53:44 -03:00
  • 956868e956 sdk: clarify event tracker functions. fiatjaf 2025-01-16 17:47:31 -03:00
  • febf022124 add some basic sdk tests, fix saving hints (normalize urls), checkduplicates arg order, kvdb stuff and other things. fiatjaf 2025-01-16 17:38:03 -03:00
  • 46569b6ef4 sdk: actually no, let's store all relay urls together in the same kvdb key. fiatjaf 2025-01-16 10:49:45 -03:00
  • 4cf9631c28 sdk: use a prefix iterator on kvdb for storing relay urls associated with ids. fiatjaf 2025-01-16 10:25:00 -03:00
  • e1971d12c0 WithCheckDuplicate(), let's see if this works. fiatjaf 2025-01-15 14:26:00 -03:00
  • ba38c28b99 sdk: track event relays on kvstore. fiatjaf 2025-01-15 00:30:24 -03:00
  • 795f9516ae use @mmalmi json string preparsing speedup for duplicate events fiatjaf 2025-01-15 00:12:44 -03:00
  • faa4fabffe sdk: setup KVStore. fiatjaf 2025-01-14 23:11:37 -03:00
  • e89b817f7d sdk: remove skipFetch from fetchGenericList() fiatjaf 2025-01-14 20:55:37 -03:00
  • ddd8976d3f fix: add retention to nip-11 ZigBalthazar 2025-01-14 15:59:35 +03:30
  • cb9e554fc9 nip22: prevent panic, return nil if not found according to nip10.go 1l0 2025-01-13 14:41:07 +09:00
  • 8fb5cd112d add nip40 helper. fiatjaf 2025-01-12 21:29:20 -03:00
  • de19a457e3 sdk: rename and adjust BatchSizePerNumberOfQueries() -> PerQueryLimitInBatch(). fiatjaf 2025-01-12 21:29:10 -03:00
  • 7be4b02236 sdk: BatchSizePerNumberOfQueries() fiatjaf 2025-01-05 14:19:03 -03:00
  • 36ddf1eb36 sdk: FetchSpecific from input string or from a pointer. fiatjaf 2025-01-05 14:18:53 -03:00
  • 967a08fb65 nip17: fix nil pointer Alessio Perugini 2025-01-05 15:21:41 +01:00
  • defc349e57 use coder/websocket for everything, get rid of gobwas. fiatjaf 2025-01-03 01:15:12 -03:00
  • b33cfb19fa rename option pool.WithQueryMiddleware() to pool.WithAuthorKindQueryMiddleware(). fiatjaf 2025-01-03 00:12:33 -03:00
  • 668720f4bc sdk: forgot to create replaceable/addressable loader slices. fiatjaf 2025-01-03 00:12:14 -03:00
  • 5875b644a2 sdk: fetching sets. fiatjaf 2025-01-02 12:12:49 -03:00
  • 63919cf685 support wasm (#163) reis 2025-01-02 21:42:04 +09:00
  • a7a66add61 sdk: fix references test. fiatjaf 2025-01-01 20:55:12 -03:00
  • c2c08ab6bc more list fetchers. fiatjaf 2025-01-01 18:16:36 -03:00
  • 159e5d21e6 some mildly useful helpers for pointers in general. fiatjaf 2025-01-01 15:04:54 -03:00
  • acf63fa7cd fetchspecificevent also accepts a hex id and saves hints. fiatjaf 2024-12-31 23:10:20 -03:00
  • 08d6943dd1 references returns an iterator because why not? fiatjaf 2024-12-31 23:09:56 -03:00
  • dcd5030fcd Add NIP-22 support dtonon 2025-01-01 20:30:54 +01:00
  • ef0717afb6 add nip14.GetSubject() fiatjaf 2024-12-31 22:45:14 -03:00
  • a4bae38f68 add nip92 imeta parsing helper. fiatjaf 2024-12-29 14:07:19 -03:00
  • 91efcb3825 remove support for extra fields in events -- was deprecated. fiatjaf 2024-12-28 14:19:28 -03:00
  • 053b3afee7 ignore libsecp256k1 dir so it doesn't show on code searches. fiatjaf 2024-12-26 17:05:49 -03:00
  • 46645ad4d6 vendor libsecp256k1 so it doesn't depend on a shared library. fiatjaf 2024-12-26 17:05:17 -03:00
  • 95ddacb9f3 sdk: track query attempts automatically and other small tweaks to replaceable fetching and stuff. fiatjaf 2024-12-24 00:15:10 -03:00
  • 3b3d5cce7b sdk/hints: adapt sqlite to also support postgres. fiatjaf 2024-12-23 18:48:04 -03:00
  • 9aac901c03 sdk/hints/sqlite: unceremoniously rename table to nostr_sdk_pubkey_relays. fiatjaf 2024-12-23 10:02:06 -03:00
  • 1778706817 add nip23 markdown helper. fiatjaf 2024-12-22 23:31:22 -03:00
  • d0476edd06 nip19: guard against broken TLVs. fiatjaf 2024-12-18 11:53:10 -03:00
  • 2dba8fc3e0 fix count test from hll breaking change. fiatjaf 2024-12-17 13:31:53 -03:00
  • ade3996fbf nip77: simplify direction selection. fiatjaf 2024-12-17 13:30:04 -03:00
  • b02f0d6537 implements direction to nip77 Gabriel Moura 2024-12-17 11:35:11 -03:00
  • f22d4b7692 make it clear that a message was _received_ from a given relay on log output. fiatjaf 2024-12-17 11:06:36 -03:00
  • 82b8602fa8 fix log_debug after jsoniter change. fiatjaf 2024-12-17 11:06:05 -03:00
  • 9cb853d6b1 nip46: fix IsValidBunkerURL because that regex was borked. fiatjaf 2024-12-17 11:05:43 -03:00
  • 11bdc95a37 nip46: label subscription. fiatjaf 2024-12-17 11:05:27 -03:00
  • 1106329c95 return hyperloglog value from Relay.Count() fiatjaf 2024-12-10 23:24:45 -03:00
  • e8d9464938 fix parsing COUNT envelopes without "hll". fiatjaf 2024-12-07 00:21:58 -03:00
  • 142da7344f nip45: remove hyperloglog tests as they have to be rewritten with the new deterministic model. fiatjaf 2024-12-07 00:14:41 -03:00
  • 851116d2e3 Merge branch 'hyperloglog' fiatjaf 2024-12-07 00:13:23 -03:00
  • 529ade9376 nip45: hyperlolog small fixes and improvements. support deterministic offset for hardcoded set of queries. fiatjaf 2024-12-07 00:12:19 -03:00
  • 72d9aac9b1 replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too. fiatjaf 2024-12-03 00:49:27 -03:00
  • 6f778f85ba always use fastsign option on btcec schnorr. fiatjaf 2024-12-02 10:38:05 -03:00
  • a546203758 nip11: support hex nip numbers as strings. fiatjaf 2024-11-30 08:53:08 -03:00
  • 9df2fc8d7b hints: prevent malicious timestamp hints to bork calculations. fiatjaf 2024-11-28 21:29:47 -03:00
  • 2519cab5ae sdk: validate nip05. fiatjaf 2024-11-27 10:23:28 -03:00
  • a1a4c04a18 nip05: identifier to url. fiatjaf 2024-11-27 01:12:57 -03:00
  • 1ac5516440 sdk: mutelist cache. fiatjaf 2024-11-27 00:59:34 -03:00
  • c5c9bba586 nip77: remove bloom filter, use a map. fiatjaf 2024-11-26 13:22:36 -03:00
  • 98d3766474 fix race condition on ticker ping. fiatjaf 2024-11-24 14:49:21 -03:00
  • 72c7892a8b kinds: fix typo 1l0 2024-11-22 09:00:06 +09:00
  • 0d40b40c9c pool: support CountMany() using hyperloglog. fiatjaf 2024-11-16 16:59:24 -03:00
  • 99e45035d5 nip45: simplify algorithm and hardcode to precision 8. fiatjaf 2024-11-02 23:36:59 -03:00
  • 59fc2be652 nip45: hyperloglog implementation. fiatjaf 2024-11-02 14:33:10 -03:00
  • 898455cbe6 nip46: better error messages on decrypt failure. fiatjaf 2024-11-12 15:50:02 -03:00
  • 903770f78d nip46: check signatures incoming from bunkers by default. fiatjaf 2024-11-12 15:48:49 -03:00
  • a0bf181547 remove HTML escaping from (easy)json encoder everywhere. fiatjaf 2024-11-11 22:55:07 -03:00
  • b62678e606 nip29: fix roles event kind. fiatjaf 2024-11-11 12:45:26 -03:00
  • 456f8687ed nip29: update to latest NIP version (change some kinds and remove permissions and moderation stuff). fiatjaf 2024-11-09 14:25:30 -03:00
  • 7fc2f88e79 filter theoretical limits. fiatjaf 2024-11-03 15:54:31 -03:00
  • 1d06176c7e kind checking moved to top-level functions on kinds.go fiatjaf 2024-11-03 15:34:49 -03:00
  • 99c3765092 nip05: use a global http client. fiatjaf 2024-10-29 10:49:14 -03:00
  • 6091256d03 remove unused err condition 1l0 2024-10-28 20:21:16 +09:00
  • 9e6342a23b nip46: delete create_account.go, it was broken. fiatjaf 2024-10-27 15:03:49 -03:00