Commit Graph

339 Commits

Author SHA1 Message Date
fiatjaf f5cd0c1140 Filter.Clone() 2023-11-06 18:50:55 -03:00
Yasuhiro Matsumoto d6baa2f74c separate msgState for reader/writer 2023-11-06 13:29:19 -03:00
fiatjaf 4fccda5549 use go version from go.mod in github action. 2023-11-06 13:28:20 -03:00
fiatjaf 50c6c7cb4b use newer go version in github action. 2023-11-06 13:26:57 -03:00
fiatjaf 5c1d5e9d56 jsutfile with bash instead of fish. 2023-11-06 13:25:08 -03:00
fiatjaf 771d87e1e5 use just test-all in github action. 2023-11-06 13:15:23 -03:00
Yasuhiro Matsumoto b7d0a30a73 fix GitHub workflow 2023-11-06 13:13:19 -03:00
fiatjaf f6df0f3f40 rename .mu -> .closeMutex 2023-11-05 13:39:09 -03:00
Yasuhiro Matsumoto 20d65d4a76 fix race condition in Close 2023-11-05 13:38:32 -03:00
fiatjaf 29646d8bec fix ok envelope test.
fixes https://github.com/nbd-wtf/go-nostr/pull/106
2023-11-05 13:35:45 -03:00
fiatjaf f8fb9e8c26 fix OKEnvelope always requiring the 4th field. 2023-11-04 17:30:19 -03:00
fiatjaf 0ecffe686d binary decoding performance gains are negligible. 2023-11-04 10:06:34 -03:00
fiatjaf 2fd7c221ff use trunk ristretto for our hashing magic instead of modded fork. 2023-11-02 16:05:08 -03:00
fiatjaf 9e593c44c2 nson and binary on justfile. 2023-11-02 16:04:23 -03:00
fiatjaf 4c72e16f3e binary encoding and some changes to nson benchmarks. 2023-11-02 15:28:01 -03:00
fiatjaf 1789d43d51 move sdk out to its own module. 2023-10-31 17:49:27 -03:00
fiatjaf 5847335506 sdk: return store event along with ProfileMetadata. 2023-10-31 15:22:55 -03:00
fiatjaf 711b0844b1 expose System properties. 2023-10-31 12:16:08 -03:00
fiatjaf 374dbbe1a0 sdk: fetch and cache profiles. 2023-10-31 11:00:46 -03:00
fiatjaf aaaf608c2b I thought I had removed this. 2023-10-30 19:24:30 -03:00
fiatjaf c506cc0f8b sdk taking shape. 2023-10-30 19:23:58 -03:00
fiatjaf 234d825e43 remove deprecated nip44 version. 2023-10-09 07:39:42 -03:00
fiatjaf 15b3aebc86 fix an accidental API breaking change. 2023-10-08 14:46:16 -03:00
fiatjaf edefc57b28 clear context differentiation on submany/unique. 2023-10-03 15:43:18 -03:00
fiatjaf 7d1091b66b fix a stupid bool. 2023-10-02 14:46:19 -03:00
fiatjaf e45921c11a pool.SubMany(Eose)NonUnique() 2023-10-02 14:16:16 -03:00
fiatjaf c68e876b05 RemoveExtra() 2023-10-02 12:26:34 -03:00
fiatjaf 1c4a64d2a1 improve warning on readme. 2023-10-02 09:16:27 -03:00
fiatjaf bc5c0aa4a1 just scripts for checking if all is ok. 2023-10-02 09:14:09 -03:00
fiatjaf 553c7f245a remove nip26 test. 2023-10-02 09:13:49 -03:00
fiatjaf a0f6dec451 fix sdk. 2023-10-02 09:13:36 -03:00
fiatjaf 978d7825b5 return IncomingEvent struct from SimplePool methods containing the relay. 2023-09-30 19:16:30 -03:00
fiatjaf 18cee7421a fix xsync counter initialization. 2023-09-16 07:51:44 -03:00
Yasuhiro Matsumoto e55f5492ab fix typos 2023-09-11 15:57:05 -03:00
Isaque Veras 0f66883dc7 feat(kind): using constants 2023-09-07 07:05:01 -03:00
fiatjaf eef7c40dc7 migrate to xsync v2. 2023-09-04 16:44:36 -03:00
fiatjaf 1f605f3629 remove intermediary .events channel and hacky ms sleep. 2023-09-04 08:57:53 -03:00
fiatjaf 6d1875de46 ensure eose channel closes after events have been emitted. 2023-09-04 08:33:31 -03:00
fiatjaf 4c50cce79c add the same warnings in Subscribe and PrepareSubscription help comments. 2023-08-31 09:27:20 -03:00
fiatjaf b8eeb658cc add size validation to nip19 decoder. 2023-08-31 09:25:09 -03:00
fiatjaf 63614bb152 add goroutine leak warning. 2023-08-31 09:18:48 -03:00
fiatjaf 446b104990 simplify subscription closing. 2023-08-22 10:58:34 -03:00
fiatjaf cd86ee2514 fixes on nip-44 and test vectors. 2023-08-21 16:21:39 -03:00
fiatjaf c5bf5892c3 release sub.Events lock when subscription is canceled. 2023-08-21 15:53:27 -03:00
fiatjaf 61cd3130fd remove unnecessary json tags from cc5979c. 2023-08-21 15:53:03 -03:00
fiatjaf 6155cf4059 remove nip-26. 2023-08-21 15:51:16 -03:00
fiatjaf 1d67a8ed87 nip44 initial implementation. 2023-08-21 15:50:42 -03:00
Kay ac2350c722 style: using effective go and refactoring 2023-08-21 15:50:05 -03:00
fiatjaf abb66db97e fix filter tests. 2023-08-06 20:03:05 -03:00
fiatjaf 5a51f84433 pool.QuerySingle() 2023-08-06 19:57:08 -03:00