Commit Graph

  • 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
  • 654857d5ab this shit doesn't work. libcrap fiatjaf 2024-12-24 19:30:29 -03:00
  • 95ddacb9f3 sdk: track query attempts automatically and other small tweaks to replaceable fetching and stuff. v0.45.0 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. v0.44.2 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. v0.44.1 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() v0.44.0 fiatjaf 2024-12-10 23:24:45 -03:00
  • e8d9464938 fix parsing COUNT envelopes without "hll". v0.43.0 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. v0.42.3 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. 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. v0.42.2 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. v0.42.1 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. v0.42.0 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. v0.41.0 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
  • 4346158f83 nip46: only use nip44 for encrypting requests and responses (breaking). fiatjaf 2024-10-27 15:03:07 -03:00
  • 579172e5b7 nip46: move some code around for clarity. v0.40.1 fiatjaf 2024-10-26 19:40:25 -03:00
  • 6445b3bfe6 nip46: client to support decrypting with nip44 together with nip04. fiatjaf 2024-10-26 19:37:36 -03:00
  • d4399892ee nip46: dynamic signer sessions were missing nip44 conversation key. fiatjaf 2024-10-26 19:26:20 -03:00
  • ab52b3efb2 sdk: ristretto is generic now, no need for the fiatjaf fork. v0.40.0 fiatjaf 2024-10-22 08:02:28 -03:00
  • 986944059f sdk: remove an unnecessary type annotation because this linter thing is annoying. v0.39.1 fiatjaf 2024-10-18 07:09:05 -03:00
  • b58c4c5516 nip13: defer cancel() calls. fiatjaf 2024-10-18 07:08:47 -03:00
  • 28b05cdd9b SimplePool.PublishMany(), finally. fiatjaf 2024-10-18 07:08:12 -03:00
  • 4cf3cdbe66 fix horrible infinite loop in Relay.QueryEvents() fiatjaf 2024-10-18 07:07:53 -03:00
  • 050ad2c509 nip17: use new path for Keyer interface. fiatjaf 2024-10-17 01:04:09 -03:00
  • 9c692af624 I think this handles CLOSED messages better. v0.39.0 fiatjaf 2024-10-16 16:27:50 -03:00
  • 14fa7a0358 deprecate storing extra fields in events. fiatjaf 2024-10-16 09:37:41 -03:00
  • 9e0a86d48e subscription must be deemed closed when receiving a CLOSED. fiatjaf 2024-10-15 18:27:19 -03:00
  • f9271a6802 fix two tests. fiatjaf 2024-10-14 17:50:37 -03:00
  • 022d4ce598 nip46: implement fmt.Stringer for request and response. fiatjaf 2024-10-14 16:42:54 -03:00
  • e05dbb5d51 nip46: revamp dynamic signer, require a ctx on HandleRequest(). fiatjaf 2024-10-14 16:26:01 -03:00
  • ee5ca07d6d keyer: move interfaces to toplevel "nostr" package. fiatjaf 2024-10-14 16:25:24 -03:00
  • 9057b1a7e1 get rid of all the deprecated things. fiatjaf 2024-10-14 16:18:32 -03:00
  • 7ede46661c fix FetchSpecificEvent() behavior for the faster no-relays case. v0.38.3 fiatjaf 2024-10-14 14:46:59 -03:00
  • 9e744e1eb0 tags: fix out of range panic 1l0 2024-10-14 04:25:31 +09:00
  • 97ed96ef73 more tag helpers. fiatjaf 2024-10-13 10:32:34 -03:00
  • 9069fb6743 Removed duplicate array length check Chris Daley 2024-10-06 18:00:46 -07:00
  • f0f4eb5276 sdk: default eventstore to NullStore instead of SliceStore. v0.38.2 fiatjaf 2024-10-06 15:53:52 -03:00
  • 36c197af42 sdk: FetchSpecificEvent() fiatjaf 2024-10-06 15:53:33 -03:00
  • f08e4e9af7 add kinds 1l0 2024-10-06 01:18:52 +09:00
  • 27bd9bfc8c nip46: fix HandleRequest request parsing logic sebas 2024-10-01 09:56:19 -06:00
  • db39f79f23 ping method considered harmless jiftechnify 2024-10-01 19:17:14 +09:00
  • 1b6ac1fe0a implement ping method in nip46 signers jiftechnify 2024-10-01 19:10:05 +09:00
  • 03ae3812c8 nip46: remove duplicated code. fiatjaf 2024-10-01 00:00:20 -03:00
  • d29025e958 CompareEvent/Ptr/Reverse utils. v0.38.1 fiatjaf 2024-09-30 00:39:26 -03:00
  • fe3508881b in the last commits we had forgotten to handle the case in which there was no WithLabel(). fiatjaf 2024-09-29 17:02:19 -03:00
  • 05eb11e302 handle invalid subscription id from relay on subIdToSerial(). fiatjaf 2024-09-29 16:47:29 -03:00
  • ad14daec9f allocate subscription id only once on creation. fiatjaf 2024-09-29 16:29:10 -03:00
  • 24343dbbef reduce allocations at subscription.GetID() because why not. fiatjaf 2024-09-29 07:55:06 -03:00
  • 7e0f1bd43c remove this forgotten makefile. v0.38.0 fiatjaf 2024-09-27 17:47:13 -03:00
  • 47d493b7e8 make libsecp256k1 available with a build tag. fiatjaf 2024-09-27 17:35:43 -03:00
  • 7503643e80 stop debuglogging duplicate "sending" messages, that has confused me absurdly. v0.37.5 fiatjaf 2024-09-26 21:12:19 -03:00
  • 69b97107a9 sdk: deduplicate relay selection for replaceable loader. fiatjaf 2024-09-26 21:09:18 -03:00
  • ade77ad6c9 sdk: label some default queries. fiatjaf 2024-09-26 21:08:40 -03:00
  • 2c19358c3a sdk: I am crazy and had removed the actual cache.Set() calls. fiatjaf 2024-09-26 21:08:13 -03:00
  • 0caf8deb56 WithUserAgent() pool option. fiatjaf 2024-09-26 19:18:34 -03:00
  • 2edc0fb713 sdk: optimize caching lists (so we don't fetch twice in a row). v0.37.4 fiatjaf 2024-09-25 22:38:31 -03:00
  • 1b786ab213 take subscription options in pool.SubMany* fiatjaf 2024-09-24 12:05:22 -03:00
  • 39f7a99894 make context work 1l0 2024-09-24 15:08:27 +09:00
  • 23ddac33dd hopefully fix a segfault with broken connections. v0.37.3 fiatjaf 2024-09-20 22:59:31 -03:00
  • 7fd28f6db0 negentropy: fix the two bugs @hoytech found. v0.37.2 fiatjaf 2024-09-20 22:41:49 -03:00
  • 4d63672462 negentropy: fix frameSizeLimit check (was checking against the hex). fiatjaf 2024-09-20 20:53:57 -03:00
  • 101031b9e8 negentropy: fix getMinimalBound() to go 2 hex chars each time instead of 1. v0.37.1 fiatjaf 2024-09-20 18:05:40 -03:00
  • 0bcefc86ef negentropy: return our version if we are a server and got the wrong version (blergh). fiatjaf 2024-09-20 17:47:47 -03:00
  • b870a78622 a test for c07528eb v0.37.0 fiatjaf 2024-09-20 14:05:45 -03:00
  • 9813d1776f negentropy: fuzz testing, move accumulator to vector package. fiatjaf 2024-09-20 10:56:15 -03:00
  • e9e96be95e negentropy: fix one stupid bug and rename Initiate() to Start(). fiatjaf 2024-09-19 15:53:01 -03:00
  • 15aa7ac31e nip17: PublishMessage() fiatjaf 2024-09-19 12:58:20 -03:00
  • 8327310d52 improve SimplePool authHandler, rename IncomingEvent to RelayEvent so we can use it there. fiatjaf 2024-09-19 12:28:42 -03:00
  • c07528eb42 fix event kind range helpers. fiatjaf 2024-09-19 11:38:22 -03:00
  • f94199cfc0 negentropy: refactor for allowing different types of storage. fiatjaf 2024-09-19 10:04:54 -03:00