Commit Graph

  • 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. 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. fiatjaf 2024-10-22 08:02:28 -03:00
  • 986944059f sdk: remove an unnecessary type annotation because this linter thing is annoying. 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. 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. 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. 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. 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. 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. 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). 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. fiatjaf 2024-09-20 22:59:31 -03:00
  • 7fd28f6db0 negentropy: fix the two bugs @hoytech found. 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. 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 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
  • 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. 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. 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() 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. 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
  • 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. 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. 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. fiatjaf 2024-09-05 14:21:54 -03:00