771 Commits

Author SHA1 Message Date
fiatjaf
95ddacb9f3 sdk: track query attempts automatically and other small tweaks to replaceable fetching and stuff. v0.45.0 2024-12-24 00:15:10 -03:00
fiatjaf
3b3d5cce7b sdk/hints: adapt sqlite to also support postgres. 2024-12-23 18:48:29 -03:00
fiatjaf
9aac901c03 sdk/hints/sqlite: unceremoniously rename table to nostr_sdk_pubkey_relays. v0.44.2 2024-12-23 10:02:06 -03:00
fiatjaf
1778706817 add nip23 markdown helper. 2024-12-23 09:17:51 -03:00
fiatjaf
d0476edd06 nip19: guard against broken TLVs.
fixes https://github.com/nbd-wtf/go-nostr/issues/161
2024-12-18 11:53:14 -03:00
fiatjaf
2dba8fc3e0 fix count test from hll breaking change. 2024-12-17 13:31:53 -03:00
fiatjaf
ade3996fbf nip77: simplify direction selection. 2024-12-17 13:30:49 -03:00
Gabriel Moura
b02f0d6537 implements direction to nip77 2024-12-17 13:26:03 -03:00
fiatjaf
f22d4b7692 make it clear that a message was _received_ from a given relay on log output. v0.44.1 2024-12-17 11:06:36 -03:00
fiatjaf
82b8602fa8 fix log_debug after jsoniter change. 2024-12-17 11:06:05 -03:00
fiatjaf
9cb853d6b1 nip46: fix IsValidBunkerURL because that regex was borked. 2024-12-17 11:05:43 -03:00
fiatjaf
11bdc95a37 nip46: label subscription. 2024-12-17 11:05:27 -03:00
fiatjaf
1106329c95 return hyperloglog value from Relay.Count() v0.44.0 2024-12-10 23:24:45 -03:00
fiatjaf
e8d9464938 fix parsing COUNT envelopes without "hll". v0.43.0 2024-12-07 00:21:58 -03:00
fiatjaf
142da7344f nip45: remove hyperloglog tests as they have to be rewritten with the new deterministic model. 2024-12-07 00:14:41 -03:00
fiatjaf
851116d2e3 Merge branch 'hyperloglog' 2024-12-07 00:13:23 -03:00
fiatjaf
529ade9376 nip45: hyperlolog small fixes and improvements. support deterministic offset for hardcoded set of queries. 2024-12-07 00:12:43 -03:00
fiatjaf
72d9aac9b1 replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too. 2024-12-03 00:49:27 -03:00
fiatjaf
6f778f85ba always use fastsign option on btcec schnorr. 2024-12-02 10:38:05 -03:00
fiatjaf
a546203758 nip11: support hex nip numbers as strings. 2024-11-30 08:53:08 -03:00
fiatjaf
9df2fc8d7b hints: prevent malicious timestamp hints to bork calculations. 2024-11-28 21:29:47 -03:00
fiatjaf
2519cab5ae sdk: validate nip05. v0.42.3 2024-11-27 10:23:28 -03:00
fiatjaf
a1a4c04a18 nip05: identifier to url. 2024-11-27 10:16:52 -03:00
fiatjaf
1ac5516440 sdk: mutelist cache. 2024-11-27 00:59:34 -03:00
fiatjaf
c5c9bba586 nip77: remove bloom filter, use a map. 2024-11-26 13:22:37 -03:00
fiatjaf
98d3766474 fix race condition on ticker ping.
fixes nevent1qqszqakrmmjyjelgp06f3hx0fu70xyvmqt4ed8v65xpmpy9g8nj9qgqpz4mhxue69uhkummnw3ezummcw3ezuer9wchsz9nhwden5te0dehhxarjv4kxjar9wvhx7un89uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcnynjra
2024-11-24 14:49:32 -03:00
1l0
72c7892a8b kinds: fix typo 2024-11-22 07:55:39 -03:00
fiatjaf
0d40b40c9c pool: support CountMany() using hyperloglog. 2024-11-16 17:47:42 -03:00
fiatjaf
99e45035d5 nip45: simplify algorithm and hardcode to precision 8. 2024-11-15 20:46:31 -03:00
fiatjaf
59fc2be652 nip45: hyperloglog implementation. 2024-11-15 20:46:31 -03:00
fiatjaf
898455cbe6 nip46: better error messages on decrypt failure. v0.42.2 2024-11-12 17:29:19 -03:00
fiatjaf
903770f78d nip46: check signatures incoming from bunkers by default. 2024-11-12 17:29:19 -03:00
fiatjaf
a0bf181547 remove HTML escaping from (easy)json encoder everywhere. v0.42.1 2024-11-11 22:55:07 -03:00
fiatjaf
b62678e606 nip29: fix roles event kind. 2024-11-11 12:45:26 -03:00
fiatjaf
456f8687ed nip29: update to latest NIP version (change some kinds and remove permissions and moderation stuff). 2024-11-09 16:12:53 -03:00
fiatjaf
7fc2f88e79 filter theoretical limits. v0.42.0 2024-11-03 15:54:31 -03:00
fiatjaf
1d06176c7e kind checking moved to top-level functions on kinds.go 2024-11-03 15:34:49 -03:00
fiatjaf
99c3765092 nip05: use a global http client. v0.41.0 2024-10-29 21:11:59 -03:00
1l0
6091256d03 remove unused err condition 2024-10-28 14:56:36 -03:00
fiatjaf
9e6342a23b nip46: delete create_account.go, it was broken. 2024-10-27 15:03:49 -03:00
fiatjaf
4346158f83 nip46: only use nip44 for encrypting requests and responses (breaking). 2024-10-27 15:03:07 -03:00
fiatjaf
579172e5b7 nip46: move some code around for clarity. v0.40.1 2024-10-26 19:55:55 -03:00
fiatjaf
6445b3bfe6 nip46: client to support decrypting with nip44 together with nip04. 2024-10-26 19:37:36 -03:00
fiatjaf
d4399892ee nip46: dynamic signer sessions were missing nip44 conversation key. 2024-10-26 19:26:20 -03:00
fiatjaf
ab52b3efb2 sdk: ristretto is generic now, no need for the fiatjaf fork. v0.40.0 2024-10-22 08:02:52 -03:00
fiatjaf
986944059f sdk: remove an unnecessary type annotation because this linter thing is annoying. v0.39.1 2024-10-18 07:09:05 -03:00
fiatjaf
b58c4c5516 nip13: defer cancel() calls. 2024-10-18 07:08:47 -03:00
fiatjaf
28b05cdd9b SimplePool.PublishMany(), finally. 2024-10-18 07:08:15 -03:00
fiatjaf
4cf3cdbe66 fix horrible infinite loop in Relay.QueryEvents() 2024-10-18 07:07:53 -03:00
fiatjaf
050ad2c509 nip17: use new path for Keyer interface. 2024-10-17 01:04:09 -03:00