Commit Graph

  • 3d58ac5ec2 negentropy: create Haves and HaveNots channels so they can be listened to immediately. fiatjaf 2024-09-19 00:04:27 -03:00
  • b1dd120ec7 negentropy: slightly faster encodeVarInt() fiatjaf 2024-09-18 15:50:50 -03:00
  • 6910f391fe negentropy: small refactors here and there, comments and making the code clearer. fiatjaf 2024-09-18 15:47:08 -03:00
  • 47243fdcc4 feat(event): adding more helpers. kehiy 2024-09-19 14:12:41 +03:30
  • c8c295f839 NIP-96 sign payload, content field for file caption (#148) Cronus 2024-09-19 21:33:02 +07:00
  • 0b2b69529b error aware Keyer.GetPublicKey 1l0 2024-09-19 17:47:18 +09:00
  • e1cdb71d6f negentropy: mention that we forked from that other repo. fiatjaf 2024-09-17 17:23:08 -03:00
  • 243343f0c5 nip46: add nip04_encrypt and nip04_decrypt to client. v0.36.3 fiatjaf 2024-09-17 11:25:13 -03:00
  • 9d1a6fab68 keyer: fix KeySigner and add a method for making one from scratch. fiatjaf 2024-09-17 08:30:15 -03:00
  • 2b04ea9bc1 sdk: do not track hints from ephemeral events. fiatjaf 2024-09-17 08:06:04 -03:00
  • 2c09338ecb sdk/hints: sqlite backend and tests. v0.36.2 fiatjaf 2024-09-16 22:23:55 -03:00
  • 4c9ab850a5 negentropy: default frameSizeLimit to basically infinite. fiatjaf 2024-09-16 22:10:03 -03:00
  • 1e4e91f257 nip19: fail to decode entities with wrong length. fiatjaf 2024-09-16 17:35:23 -03:00
  • 515f76bd86 add a default user-agent: github.com/nbd-wtf/go-nostr. fiatjaf 2024-09-16 07:11:16 -03:00
  • a54852f439 CompareEvent() for helping with slices.BinarySearch() v0.36.1 fiatjaf 2024-09-15 12:57:51 -03:00
  • 87e696eecb nip17: include recipient "p" tag. fiatjaf 2024-09-15 12:57:36 -03:00
  • db023e12e9 keyer, nip17, nip44, nip59: this time is different! fiatjaf 2024-09-15 11:06:42 -03:00
  • f976296e01 more fixes and tweaks to keyer, 17, 44 and 59. fiatjaf 2024-09-14 23:23:53 -03:00
  • 46a0c95b96 some tweaks to 17, 44 and 59. fiatjaf 2024-09-14 22:47:26 -03:00
  • 0656357a60 keyer: accept truncated private keys as input and pad them. fiatjaf 2024-09-14 22:47:01 -03:00
  • 7ab94cc3d9 updating nip77.go to 286040c fiatjaf 2024-09-14 17:08:12 -03:00
  • 495c6e6e75 negentropy: test lists equality instead of matching elements. fiatjaf 2024-09-14 17:06:10 -03:00
  • 286040c4ce negentropy: do the algorithm entirely in hex. fiatjaf 2024-09-14 16:28:19 -03:00
  • b5f8d48f79 event.CheckID() fiatjaf 2024-09-14 10:55:16 -03:00
  • a094f3a9d2 negentropy. v0.36.0 fiatjaf 2024-09-14 01:03:19 -03:00
  • b5633b97c3 nip29: delete-group-status -> delete-group fiatjaf 2024-09-14 00:03:33 -03:00
  • 076e8a1cb0 nip77 nostr-negentropy syncing basics. negentropy fiatjaf 2024-09-12 17:59:44 -03:00
  • 775a89a3c6 nip77 wip fiatjaf 2024-09-12 10:27:26 -03:00
  • da8443b26d stop expecting each have/need to be only emitted once, adjust api. fiatjaf 2024-09-11 23:15:35 -03:00
  • 9584a84293 negentropy: remove all the logs. fiatjaf 2024-09-11 21:30:28 -03:00
  • 9d28f7e7f2 a million debug logs. fiatjaf 2024-07-25 20:16:34 -03:00
  • 9c97d0fc28 more small tests and one big test that is failing. fiatjaf 2024-07-22 16:25:42 -03:00
  • 874ab3411d more of that. fiatjaf 2024-07-22 16:25:06 -03:00
  • 80db5b1c0a using bytes.Buffer to write instead of a pointer to a slice of bytes. fiatjaf 2024-07-22 16:20:13 -03:00
  • d68a17d6e8 abstract test suite. fiatjaf 2024-07-21 23:27:03 -03:00
  • e5e2279ca3 simple test working. fiatjaf 2024-07-21 19:04:51 -03:00
  • 36bf0b4f14 negentropy: use bytes.Reader instead of pointer to byte slice. fiatjaf 2024-07-21 17:26:11 -03:00
  • fd1fc8340f negentropy: converting to a more usable api. fiatjaf 2024-07-20 00:52:58 -03:00
  • b8fe53e295 negentropy beginnings. fiatjaf 2024-07-19 20:59:54 -03:00
  • 64c6057c08 return from subMany() on context done in one place where we weren't. fiatjaf 2024-09-11 21:05:34 -03:00
  • 1b7f191bc4 nip46: fix using nil relay pointer when connection fails. fiatjaf 2024-09-11 16:42:56 -03:00
  • 5e2e0bf458 keyring -> keyer, fix misunderstanding with NIP-59 and adjust api. fiatjaf 2024-09-11 11:43:49 -03:00
  • 9addd57db7 missing bit from f57d93. fiatjaf 2024-09-11 10:16:28 -03:00
  • 072da132f4 move nostr-sdk repository into here because why not? fiatjaf 2024-09-10 22:37:48 -03:00
  • c6ea51653b make nip44 conversation key be static array. fiatjaf 2024-09-10 21:16:28 -03:00
  • 873453928e nip17: forgot to close this channel. fiatjaf 2024-09-10 20:53:15 -03:00
  • 7514629906 nip17 and nip59. fiatjaf 2024-09-10 15:28:30 -03:00
  • cc038de0dd nip46: encrypt/decrypt nip44 methods on client. fiatjaf 2024-09-10 15:28:18 -03:00
  • c91e7b9765 using testify instead of testing.T methods. (#143) K 2024-09-09 13:50:56 +03:30
  • b2692a2584 move all the binary stuff to github.com/fiatjaf/eventstore. v0.35.0 fiatjaf 2024-09-08 12:00:30 -03:00
  • 6ebdf9cc00 remove "pure" binary marshal/unmarshal since it was always just an exercise. fiatjaf 2024-09-08 11:55:34 -03:00
  • 2016f11dd1 remove nson. fiatjaf 2024-09-08 11:53:57 -03:00
  • b7c79c9c9c Fix nson benchmarks kehiy 2024-09-08 18:17:07 +03:30
  • 7787a4fcf7 fix binary encoding stupid encoding bug that just guessed a slice length and if we were to go above it it would just panic. v0.34.15 fiatjaf 2024-09-08 11:48:07 -03:00
  • e175e634c8 unsafe.String() on binary decoding is not safe. fiatjaf 2024-09-07 10:43:17 -03:00
  • f57d93ac78 after getting an EOSE we should stop checking since/until. fiatjaf 2024-09-06 19:37:34 -03:00
  • cd145f4fcb nip19: fix decoding faulty kind from tlv. v0.34.14 fiatjaf 2024-09-05 14:21:54 -03:00
  • 51e527680e WithNoticeHandler() just calls a function, no channel stuff anymore. fiatjaf 2024-08-31 23:12:14 -03:00
  • 5edb54efee nip46: do not allow one faulty relay to break RPC calls to other relays. v0.34.13 fiatjaf 2024-08-29 17:49:51 -03:00
  • 1db4da7ed3 nip29: get rid of useless constant. fiatjaf 2024-08-29 07:57:05 -03:00
  • ddf28001cf nip34: fix .Branches -> .Tags for refs/tags/ v0.34.12 fiatjaf 2024-08-28 16:08:04 -03:00
  • 0750057b13 nip34: fixes. v0.34.11 fiatjaf 2024-08-28 09:33:42 -03:00
  • 106ca136fd nip34: repository state and some ToEvent() helpers. fiatjaf 2024-08-27 12:05:10 -03:00
  • c78c5658a3 move kind constants to kinds.go fiatjaf 2024-08-26 17:16:28 -03:00
  • 148942cfae nip13: use slightly more efficient difficulty checking on DoWork() that makes it 17% faster v0.34.10 fiatjaf 2024-08-21 17:03:30 -03:00
  • 75e6befdd0 nip13: move Generate() to deprecated.go fiatjaf 2024-08-21 16:54:02 -03:00
  • 2fc34e0de8 nip13: fix slice pointer race issue on DoWork() fiatjaf 2024-08-21 16:53:40 -03:00
  • 83bd196bae nip13: parallel DoWork(), deprecate Generate() v0.34.9 fiatjaf 2024-08-20 23:04:52 -03:00
  • 2da58356b0 Revert "nip13: crazier and more fun and hopefully slightly more performant nonce encoding." v0.34.8 fiatjaf 2024-08-20 17:05:49 -03:00
  • edbbd6df44 nip13: crazier and more fun and hopefully slightly more performant nonce encoding. v0.34.7 fiatjaf 2024-08-20 13:54:51 -03:00
  • 437cdecfb1 nip13: CommittedDifficulty() fiatjaf 2024-08-20 13:19:21 -03:00
  • 0e72540696 nip13: fail when pubkey is not provided -- may help some clueless people like me. v0.34.6 fiatjaf 2024-08-20 10:31:52 -03:00
  • 18dbda437b nip13: superficial changes. fiatjaf 2024-08-20 09:52:35 -03:00
  • b3ca3c1b82 add KindSimpleGroupLeaveRequest Yasuhiro Matsumoto 2024-08-19 17:46:58 +09:00
  • b6aca13732 ditto Yasuhiro Matsumoto 2024-08-19 17:28:55 +09:00
  • 7faa3da20a add KindSimpleGroupDeleteGroup Yasuhiro Matsumoto 2024-08-19 17:23:54 +09:00
  • 70dfeea299 127.0.0.1 also defaults to ws:// fiatjaf 2024-08-19 11:53:18 -03:00
  • 894a98b98b remove some useless checks from event json. fiatjaf 2024-08-13 22:01:27 -03:00
  • e781c1be8f nip96: http file storage bndw 2024-08-09 14:46:03 -07:00
  • ca396e794f nip29: move relay-side moderation actions to relay29. fiatjaf 2024-08-03 10:23:08 -03:00
  • 1bed62c7af nip04: one more test to make @mleku happy. fiatjaf 2024-07-31 20:49:06 -03:00
  • 077c14cef6 pool: implement optional penalty box mechanic. v0.34.5 fiatjaf 2024-07-29 14:58:25 -03:00
  • 53ff9019d6 use ubuntu-24.04 Yasuhiro Matsumoto 2024-07-29 22:52:46 +09:00
  • 4f71918311 fix IsValidRelayURL Yasuhiro Matsumoto 2024-07-29 22:37:28 +09:00
  • f3f29950b7 fix test.yml Yasuhiro Matsumoto 2024-07-20 21:34:23 +09:00
  • 81a396be56 nip44: some more refactors and fix max length case. fiatjaf 2024-07-15 22:28:07 -03:00
  • 6c19aa1b5e nip44: refactor so bizarre var declarations are eliminated. fiatjaf 2024-07-15 18:57:33 -03:00
  • 3ea28878de nip86: fix wrong rpc name. v0.34.4 fiatjaf 2024-07-12 13:53:40 -03:00
  • 684ff538ab nip86: omit empty result or error. v0.34.3 fiatjaf 2024-07-12 13:44:43 -03:00
  • d4c31e3fc9 nip29: fix updating LastMembersUpdate and LastAdminsUpdate on .Apply() fiatjaf 2024-07-12 13:44:27 -03:00
  • d3c2667428 nip29: fix making metadata event (about was name). fiatjaf 2024-07-11 11:03:35 -03:00
  • a95de1dc8a nip86: structured response types. v0.34.2 fiatjaf 2024-07-08 15:40:27 -03:00
  • ad022f7c80 add nip86 (relay management API) types. fiatjaf 2024-07-08 09:00:04 -03:00
  • ccdab0fa6b nip29: enable private groups. v0.34.1 fiatjaf 2024-07-05 16:59:12 -03:00
  • 92b85c9483 fix localhost trick from 8aaf5b. v0.34.0 fiatjaf 2024-07-04 16:29:04 -03:00
  • f9fd760808 nip29: handle 9007 create_group. fiatjaf 2024-07-03 22:17:43 -03:00
  • 8aaf5b8f98 Append 'ws://' prefix if url starts with localhost (#132) P. Reis 2024-07-04 12:06:24 -03:00
  • 6ed112cc69 pool event middleware for optionally doing stuff with all events. fiatjaf 2024-06-27 16:49:50 -03:00
  • a7303c385b error instead of panic'ing when opening subscription. fiatjaf 2024-06-27 14:50:24 -03:00
  • a35cdff6c8 problem: connection can be nil when writing and we're panic'ing. fiatjaf 2024-06-21 09:32:53 -03:00