Commit Graph

  • 7826e9506c nip49: uncommitted test change. fiatjaf 2024-02-19 07:15:33 -03:00
  • 1b286e52a4 nip49: augment normalization test. fiatjaf 2024-02-16 00:04:11 -03:00
  • faf76711a5 nip49: add normalization test. fiatjaf 2024-02-16 00:02:58 -03:00
  • 2cba101c22 nip49: normalize passwords. fiatjaf 2024-02-15 22:21:11 -03:00
  • f3d9f02598 nip46: add a random element to id generation. fiatjaf 2024-02-11 11:07:01 -03:00
  • 64cc356404 nip34: remove void property. fiatjaf 2024-02-10 17:40:31 -03:00
  • b5137c95eb add gob to binary benchmarks. fiatjaf 2024-02-08 20:19:36 -03:00
  • 7fb0ffca6b nip34: allow multiple entries in web/clone/relays tags. fiatjaf 2024-02-08 17:38:06 -03:00
  • c362be0e82 nip34: get patches from repo. fiatjaf 2024-02-08 16:33:52 -03:00
  • 9c4ea87d0b use stdlib "slices". fiatjaf 2024-02-08 16:33:39 -03:00
  • 555197973b RelayStore interface (copied from eventstore) and MultiStore. fiatjaf 2024-02-08 15:54:55 -03:00
  • 385aa9c958 draft nip-34 helpers. fiatjaf 2024-02-07 21:44:47 -03:00
  • 60359110d7 nip46: client. fiatjaf 2024-02-06 00:45:36 -03:00
  • 09ea5d5758 subscription.EndOfStoredEvents to have a capacity of 1 so it never gets deadlocked. fiatjaf 2024-01-28 14:34:01 -03:00
  • 58ff5f6716 nip49: encrypt before decrypt. fiatjaf 2024-01-25 10:43:40 -03:00
  • 84134f7d8e nip49: remove dangling fmt.Println() fiatjaf 2024-01-23 09:30:26 -03:00
  • 20104e47ec NIP-34 code for contributions. fiatjaf 2024-01-23 10:13:23 -03:00
  • 39f541fc03 implement nip49. fiatjaf 2024-01-22 22:27:13 -03:00
  • fb92dc49dd nip29: smarter access control rules for moderation actions. fiatjaf 2024-01-18 21:06:43 -03:00
  • 2586144a5c replace usage of IsValidPublicKeyHex() in subpackages. fiatjaf 2024-01-18 20:30:20 -03:00
  • 9457c5a794 fix IsValidPublicKey() to use schnorr. fiatjaf 2024-01-18 17:56:54 -03:00
  • 70f719ea31 IsValidPublicKey() and IsValid32ByteHex() replacing IsValidPublicKeyHex() fiatjaf 2024-01-18 16:27:56 -03:00
  • 1a7b8991a3 pool: deduplicate relay urls list. fiatjaf 2024-01-18 11:49:16 -03:00
  • 4dc6e21f60 nip29: join request. fiatjaf 2024-01-18 11:48:43 -03:00
  • 1ff7f826c2 nip11: url normalization improvement and Fetch test. fiatjaf 2024-01-13 12:46:59 -03:00
  • fed7e4c3f2 add nip53. fiatjaf 2024-01-10 12:07:34 -03:00
  • 88bb00604c nip52: add image. fiatjaf 2024-01-10 12:07:23 -03:00
  • 1800f2e590 add nip31, nip52, nip94. fiatjaf 2024-01-10 10:09:17 -03:00
  • 7b292775c0 migrate to xsync/v3 fiatjaf 2024-01-10 06:54:52 -03:00
  • fd8b2b22b2 nip-46 dynamic and static signers. fiatjaf 2024-01-09 16:55:00 -03:00
  • ce424619f4 nip05: add nip46 field. fiatjaf 2024-01-06 08:07:28 -03:00
  • 8da32e6dfc nip29: NewGroup() doesn't set timestamps to now. fiatjaf 2024-01-04 21:46:10 -03:00
  • 48db1df66c nip29: refine group-events relationships and write some tests. fiatjaf 2024-01-04 15:00:55 -03:00
  • ed3642f112 nip29: move some things back from nip29/relay to nip29 fiatjaf 2024-01-04 11:48:53 -03:00
  • 3fecd03ed4 nip29: move relay-specific stuff to nip29/relay fiatjaf 2024-01-04 11:33:17 -03:00
  • e4b4654e66 nip29: bring in helpers for managing groups to be used on the relay side. fiatjaf 2024-01-04 11:29:21 -03:00
  • f1c71134e3 experimental nip29 support. fiatjaf 2024-01-02 17:23:34 -03:00
  • 5938a71146 replace close() with actually sending a value to .EndOfStoredEvents and .Closed channels. fiatjaf 2024-01-01 10:16:07 -03:00
  • 3afa6fc5f6 update reflect/unsafe.String thing. fiatjaf 2024-01-01 10:15:06 -03:00
  • 7692f1c148 go mod tidy fiatjaf 2023-12-29 18:16:55 -03:00
  • 45bdd193c5 Tags.GetD() fiatjaf 2023-12-29 15:58:25 -03:00
  • 8b1839bfc1 remove dependency for github.com/dgraph-io/ristretto/z Yasuhiro Matsumoto 2023-12-29 20:54:22 +09:00
  • 781aecc6ac binary/hybrid Marshal() fails if event has any items over the limits. fiatjaf 2023-12-22 19:33:30 -03:00
  • f1980e8b7a expose max limits allowed for binary format event fields. fiatjaf 2023-12-22 18:18:44 -03:00
  • 2f514d5026 remove unnecessary mutex. fiatjaf 2023-12-15 14:15:37 -03:00
  • f60b70eb5e update go version Yasuhiro Matsumoto 2023-12-15 00:30:20 +09:00
  • 242af0bf76 fix heavy loop Yasuhiro Matsumoto 2023-12-15 00:27:56 +09:00
  • c55b509653 binary: fix encoding, was using uint8 for tags length, which was obviously not working. fiatjaf 2023-12-10 21:13:34 -03:00
  • 7ecbc0a7cf binary: move benchmarks to different test file. fiatjaf 2023-12-10 21:12:54 -03:00
  • e73b784501 update example in README. fiatjaf 2023-12-09 14:40:39 -03:00
  • fabd5160a8 fix sign in relay test just recently updated. fiatjaf 2023-12-09 13:26:50 -03:00
  • 3e1749a01d fix OK handling. fiatjaf 2023-12-09 13:21:35 -03:00
  • 1bccebbf2a fix ParseMessage() so it works with CLOSED and improve tests. fiatjaf 2023-12-09 11:29:14 -03:00
  • 64eb395dc1 fix tests that relied on the defunct PublishStatus enum. fiatjaf 2023-12-07 21:39:40 -03:00
  • b2170efb5a support performing AUTH in the middle of SimplePool's subMany* fiatjaf 2023-12-07 21:37:41 -03:00
  • f8fa490293 get rid of PublishStatus and always expect relays to answer with an OK for both AUTH and EvENT publishes. fiatjaf 2023-12-07 21:31:35 -03:00
  • f9f3a34ccc nip46: fix variable name (was using the shared key as the secret key.) fiatjaf 2023-12-02 15:31:26 -03:00
  • 15f026d2c5 exponential backoff on SimplePool reconnections and only update since once. fiatjaf 2023-12-02 15:12:45 -03:00
  • 0e0ecb2412 refactor SimplePool automatic reconnection. fiatjaf 2023-12-02 14:59:16 -03:00
  • a65bd94a00 minor. fiatjaf 2023-12-02 14:38:18 -03:00
  • 32c1969397 simplify pre-eose cleanup in pool.subMany() fiatjaf 2023-12-02 14:37:32 -03:00
  • cb8b40bd00 reconnect Yasuhiro Matsumoto 2023-12-02 19:14:54 +09:00
  • a9972245f3 nip04: augment tests with cross-compatibility vectors. fiatjaf 2023-12-02 13:13:32 -03:00
  • 2b9b4dfa2f nip46: rename Pool to Signer. fiatjaf 2023-12-01 20:50:00 -03:00
  • c606a43c07 fix atrocious bug on pool.subMany(): we were missing events because of a badly designed select{} fiatjaf 2023-12-01 20:49:45 -03:00
  • 2969449fb3 nip46: make everything strings because pablo did it like that. fiatjaf 2023-12-01 17:23:59 -03:00
  • 277cdd8df8 nip46: improvements. fiatjaf 2023-12-01 17:20:29 -03:00
  • 73d5e943e2 nip-46 signer flow helpers. fiatjaf 2023-12-01 16:15:24 -03:00
  • 711db062a1 primitive support for CLOSED in SimplePool. fiatjaf 2023-12-01 13:37:24 -03:00
  • 775821f4e5 fix CLOSED->CLOSE marshaling on CloseEnvelope. fiatjaf 2023-12-01 12:57:18 -03:00
  • 3adb1cde3c only store the last AUTH challenge and allow user to perform auth only whenever they want instead of automatically. fiatjaf 2023-11-28 22:30:16 -03:00
  • 0c5a1b7b4f move internal utilts to helpers.go fiatjaf 2023-11-28 22:24:05 -03:00
  • ddc50028c3 add NormalizeOKMessage() helper. fiatjaf 2023-11-28 22:23:51 -03:00
  • 7449f254db support handling CLOSED messages from relay client. fiatjaf 2023-11-28 18:54:24 -03:00
  • fa20f84ec7 support CLOSED messages. fiatjaf 2023-11-28 18:25:46 -03:00
  • b6ec7327ef easyjson on filter.String() fiatjaf 2023-11-28 15:14:27 -03:00
  • cd0d644046 If EOSE is not given, they should not be deleted. Yasuhiro Matsumoto 2023-11-24 17:29:29 +09:00
  • ba25770f65 seenAlready must drop older events Yasuhiro Matsumoto 2023-11-24 17:24:36 +09:00
  • 8a540998b9 nip11 fetch better errors. fiatjaf 2023-11-20 14:59:12 -03:00
  • f3c081fcd6 remove nip11 min_prefix. fiatjaf 2023-11-18 10:43:29 -03:00
  • b33fe374c1 nip11's info.AddSupportedNIP() fiatjaf 2023-11-18 10:32:15 -03:00
  • fe32ecd440 nip11: "restricted_writes". fiatjaf 2023-11-18 09:42:19 -03:00
  • 0cfaa0da0a ensure private key is 64 characters long. fiatjaf 2023-11-17 09:27:10 -03:00
  • 307df51b9a use xsync maps for pool relays to prevent concurrent access panics. fiatjaf 2023-11-16 14:51:33 -03:00
  • 9287b9fb5e accept > 2 items on EOSE and NOTICE envelopes, but ignore them. fiatjaf 2023-11-14 15:45:47 -03:00
  • 93b43ed426 add infolog for when a relay sends an unexpected OK message. fiatjaf 2023-11-08 22:22:29 -03:00
  • fda3bd2acb accept custom sign options for schnorr library. fiatjaf 2023-11-08 21:51:01 -03:00
  • c357e6babe log event id on bad signature. fiatjaf 2023-11-08 00:07:01 -03:00
  • 2fa04c96cc remove duplicated badges. fiatjaf 2023-11-07 22:26:42 -03:00
  • 8bd03cbaed turns out we don't need just to run tests. fiatjaf 2023-11-07 22:24:02 -03:00
  • fe17b5c0ad add badges to readme. fiatjaf 2023-11-07 22:23:52 -03:00
  • fe9fe0abc8 remove useless assignment. fiatjaf 2023-11-07 22:17:50 -03:00
  • f5cd0c1140 Filter.Clone() fiatjaf 2023-11-06 18:35:11 -03:00
  • d6baa2f74c separate msgState for reader/writer Yasuhiro Matsumoto 2023-11-06 23:07:07 +09:00
  • 4fccda5549 use go version from go.mod in github action. fiatjaf 2023-11-06 13:28:20 -03:00
  • 50c6c7cb4b use newer go version in github action. fiatjaf 2023-11-06 13:26:57 -03:00
  • 5c1d5e9d56 jsutfile with bash instead of fish. fiatjaf 2023-11-06 13:25:08 -03:00
  • 771d87e1e5 use just test-all in github action. fiatjaf 2023-11-06 13:15:23 -03:00
  • b7d0a30a73 fix GitHub workflow Yasuhiro Matsumoto 2023-11-06 23:15:15 +09:00
  • f6df0f3f40 rename .mu -> .closeMutex fiatjaf 2023-11-05 13:39:09 -03:00