Commit Graph

  • 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. 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/ fiatjaf 2024-08-28 16:08:04 -03:00
  • 0750057b13 nip34: fixes. 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 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() fiatjaf 2024-08-20 23:04:52 -03:00
  • 2da58356b0 Revert "nip13: crazier and more fun and hopefully slightly more performant nonce encoding." fiatjaf 2024-08-20 17:05:49 -03:00
  • edbbd6df44 nip13: crazier and more fun and hopefully slightly more performant nonce encoding. 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. 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. 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. fiatjaf 2024-07-12 13:53:40 -03:00
  • 684ff538ab nip86: omit empty result or error. 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. 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. fiatjaf 2024-07-05 16:59:12 -03:00
  • 92b85c9483 fix localhost trick from 8aaf5b. 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
  • 3862333dfa nip11: always return a struct from Fetch() with URL filled. fiatjaf 2024-06-19 19:54:40 -03:00
  • 37ef70e4cb relay: prevent panic on double-closing. fiatjaf 2024-06-19 09:59:25 -03:00
  • d6d02686a9 nip29: NewGroupFromMetadataEvent() fiatjaf 2024-06-07 14:22:17 -03:00
  • b173c40f14 nip34: read all maintainers instead of just the first. fiatjaf 2024-06-07 08:11:35 -03:00
  • 00ae611115 binary: unsafe.String() decoders. fiatjaf 2024-06-03 20:53:52 -03:00
  • 742873bde6 Support a tags in GetImmediateReply dtonon 2024-05-29 22:20:49 +02:00
  • d06f61136d allow using libsecp256k1 for signature verification in subscriptions. fiatjaf 2024-05-29 17:08:15 -03:00
  • 31e0645afe libsecp256k1: use a static global context and add verification tests. fiatjaf 2024-05-29 15:40:57 -03:00
  • 427bfc7a4b add libsecp256k1 wrapper for sign/verify. fiatjaf 2024-05-29 15:32:49 -03:00
  • 0e93b1173f deprecation notice on binary package. fiatjaf 2024-05-29 15:30:21 -03:00
  • f8bf988882 move "normalEvents" used by binary and nson to a common place. fiatjaf 2024-05-29 15:26:56 -03:00
  • 2bf6c87b45 remove json annotations from event. fiatjaf 2024-05-29 08:40:54 -03:00
  • 0836352724 namedLock() uses normalized uri and a simple test. fiatjaf 2024-05-29 08:39:24 -03:00
  • b00bf363c8 remove annotations from filter. fiatjaf 2024-05-25 07:34:34 -03:00
  • 8897cc36e4 nip29: fix group address parsing and encoding order. fiatjaf 2024-05-24 15:13:05 -03:00
  • e1ae36ceb2 nip29: fix printing of GroupAddress. fiatjaf 2024-05-24 14:39:54 -03:00
  • 96da8bd6f5 IncomingEvent.String() fiatjaf 2024-05-22 08:49:46 -03:00
  • 7578bf6c71 nip46: support decrypting with nip44. fiatjaf 2024-05-20 09:20:39 -03:00
  • abe84f9089 improve COUNT envelope codec and add a test. fiatjaf 2024-05-20 08:26:13 -03:00
  • 9a29edca41 fix: CountEnvelope json.Marshal ann 2024-05-20 17:29:34 +08:00
  • 7ccd0e7192 nip46: client sends limit: 0 fiatjaf 2024-05-15 16:59:38 -03:00
  • a183ab0768 nip46: pass secret to authorize functions. fiatjaf 2024-05-15 16:13:12 -03:00
  • 4a2242e965 nip46: support nip44 in servers. fiatjaf 2024-05-15 16:00:30 -03:00
  • 7be82655d3 nip44: adjust api so it is more like nip04. fiatjaf 2024-05-15 12:06:04 -03:00
  • dd52fd4910 add nip44 (copied from reference implementation). fiatjaf 2024-05-15 07:35:38 -03:00
  • a5767c9b5a Add timezones to CalendarEvent dtonon 2024-05-14 17:46:25 +02:00
  • 96dfeac1bd nip29: oh, right, group addresses. fiatjaf 2024-05-10 18:03:24 -03:00
  • 705d035281 nip54: identifier can contain number. fiatjaf 2024-05-10 17:58:21 -03:00
  • b8ec1343cc nip29: some more group helpers. fiatjaf 2024-05-10 17:54:08 -03:00
  • b43d0e374a reorder json serialization to write "kind" first and adjust tests. fiatjaf 2024-04-25 18:30:38 -03:00
  • 76997c619b nip46: client small tweaks. fiatjaf 2024-04-25 18:25:35 -03:00
  • 2a85932a4f omit id, pubkey and sig in jsonifying event and they're not present. fiatjaf 2024-04-25 18:14:39 -03:00
  • ed62361f1b nip34: other fields in repository announcement. fiatjaf 2024-04-24 18:59:08 -03:00
  • 87390c11ac changed nostr relays from examples leorighi 2024-04-11 19:23:38 -03:00
  • 907cfd7846 Filter.LimitZero fiatjaf 2024-03-29 08:06:29 -03:00
  • a6e208ad49 improve guessed buffer size on binary. fiatjaf 2024-03-28 08:55:30 -03:00
  • 01d5dc02c5 nip54: trim spaces. fiatjaf 2024-03-13 19:26:37 -03:00
  • 6f32e4da63 nip54: improve normalization and add tests. fiatjaf 2024-03-13 16:36:08 -03:00
  • c0f1c4f510 add option to connect with custom TLS ice-cronus 2024-03-28 17:23:02 +03:00
  • cff9af9aca nip54: normalize identifier. fiatjaf 2024-03-13 12:53:33 -03:00
  • 7284ebcf13 fix nip05. fiatjaf 2024-03-11 13:44:58 -03:00
  • c844dc2ccb use NormalizeURL() on nip11.Fetch() fiatjaf 2024-03-10 18:44:56 -03:00
  • ec1e86e505 Support url without protocol in nip11.Fetch Daniele Tonon 2024-03-09 19:48:25 +01:00
  • aea2895441 nip46: fix pubkey passed to "connect". fiatjaf 2024-03-04 09:30:45 -03:00
  • d690fd7f07 nip46: bunker implementation changes for more streamlined authorization prompts. fiatjaf 2024-03-02 08:16:11 -03:00
  • 5aa4fbcc72 nip46: fix assigning client secret key to struct. fiatjaf 2024-03-02 07:48:41 -03:00
  • 9cb740764b nip05: IsValidIdentifier fiatjaf 2024-03-02 07:48:24 -03:00
  • f4cf242084 validating/parsing nip05 and nip46. fiatjaf 2024-03-01 15:54:28 -03:00
  • c5f6692f74 explain how to turn off logs. fiatjaf 2024-03-01 15:54:11 -03:00
  • f75501e7ef nip46: auth_url support. fiatjaf 2024-02-29 20:37:16 -03:00
  • 6d5aef70c5 nip46: create_account fiatjaf 2024-02-29 20:29:08 -03:00
  • e0ba846a03 nip46: support nip05 identifier in client. fiatjaf 2024-02-29 16:28:46 -03:00
  • e4f0509689 nip05: omit empty fields. fiatjaf 2024-02-28 09:41:11 -03:00
  • c5819b6cb5 update checkout and setup-go versions to prevent node js 12 and 16 deprecations in github actions ramin 2024-02-26 20:59:19 +00:00
  • ced14c09ac pool: simplify batches (extra code was actually doing nothing at all). fiatjaf 2024-02-25 11:22:30 -03:00
  • e6ef78c509 DirectedFilters to accept a list of filters. fiatjaf 2024-02-24 18:51:56 -03:00
  • 28b34794f4 pool.BatchedSubMany() fiatjaf 2024-02-24 18:44:37 -03:00