1l0
6091256d03
remove unused err condition
2024-10-28 14:56:36 -03:00
fiatjaf
9e6342a23b
nip46: delete create_account.go, it was broken.
2024-10-27 15:03:49 -03:00
fiatjaf
4346158f83
nip46: only use nip44 for encrypting requests and responses (breaking).
2024-10-27 15:03:07 -03:00
fiatjaf
579172e5b7
nip46: move some code around for clarity.
v0.40.1
2024-10-26 19:55:55 -03:00
fiatjaf
6445b3bfe6
nip46: client to support decrypting with nip44 together with nip04.
2024-10-26 19:37:36 -03:00
fiatjaf
d4399892ee
nip46: dynamic signer sessions were missing nip44 conversation key.
2024-10-26 19:26:20 -03:00
fiatjaf
ab52b3efb2
sdk: ristretto is generic now, no need for the fiatjaf fork.
v0.40.0
2024-10-22 08:02:52 -03:00
fiatjaf
986944059f
sdk: remove an unnecessary type annotation because this linter thing is annoying.
v0.39.1
2024-10-18 07:09:05 -03:00
fiatjaf
b58c4c5516
nip13: defer cancel() calls.
2024-10-18 07:08:47 -03:00
fiatjaf
28b05cdd9b
SimplePool.PublishMany(), finally.
2024-10-18 07:08:15 -03:00
fiatjaf
4cf3cdbe66
fix horrible infinite loop in Relay.QueryEvents()
2024-10-18 07:07:53 -03:00
fiatjaf
050ad2c509
nip17: use new path for Keyer interface.
2024-10-17 01:04:09 -03:00
fiatjaf
9c692af624
I think this handles CLOSED messages better.
v0.39.0
2024-10-16 16:27:50 -03:00
fiatjaf
14fa7a0358
deprecate storing extra fields in events.
2024-10-16 09:37:41 -03:00
fiatjaf
9e0a86d48e
subscription must be deemed closed when receiving a CLOSED.
2024-10-15 18:27:19 -03:00
fiatjaf
f9271a6802
fix two tests.
2024-10-14 17:50:37 -03:00
fiatjaf
022d4ce598
nip46: implement fmt.Stringer for request and response.
2024-10-14 16:42:54 -03:00
fiatjaf
e05dbb5d51
nip46: revamp dynamic signer, require a ctx on HandleRequest().
2024-10-14 16:26:16 -03:00
fiatjaf
ee5ca07d6d
keyer: move interfaces to toplevel "nostr" package.
2024-10-14 16:25:24 -03:00
fiatjaf
9057b1a7e1
get rid of all the deprecated things.
2024-10-14 16:20:30 -03:00
fiatjaf
7ede46661c
fix FetchSpecificEvent() behavior for the faster no-relays case.
v0.38.3
2024-10-14 14:47:15 -03:00
1l0
9e744e1eb0
tags: fix out of range panic
2024-10-14 11:59:13 -03:00
fiatjaf
97ed96ef73
more tag helpers.
2024-10-13 10:32:43 -03:00
Chris Daley
9069fb6743
Removed duplicate array length check
2024-10-07 00:23:30 -03:00
fiatjaf
f0f4eb5276
sdk: default eventstore to NullStore instead of SliceStore.
v0.38.2
2024-10-06 15:54:00 -03:00
fiatjaf
36c197af42
sdk: FetchSpecificEvent()
2024-10-06 15:54:00 -03:00
1l0
f08e4e9af7
add kinds
2024-10-05 22:24:29 -03:00
sebas
27bd9bfc8c
nip46: fix HandleRequest request parsing logic
...
Move out the `session.ParseRequest` call from the `else` branch. This
caused an empty `Request` object to be used down in the function when
the `Session` already existed.
2024-10-01 16:58:54 -03:00
jiftechnify
db39f79f23
ping method considered harmless
2024-10-01 09:39:03 -03:00
jiftechnify
1b6ac1fe0a
implement ping method in nip46 signers
2024-10-01 09:39:03 -03:00
fiatjaf
03ae3812c8
nip46: remove duplicated code.
...
fixes https://github.com/nbd-wtf/go-nostr/issues/152
2024-10-01 00:00:21 -03:00
fiatjaf
d29025e958
CompareEvent/Ptr/Reverse utils.
v0.38.1
2024-09-30 00:39:26 -03:00
fiatjaf
fe3508881b
in the last commits we had forgotten to handle the case in which there was no WithLabel().
2024-09-29 17:02:19 -03:00
fiatjaf
05eb11e302
handle invalid subscription id from relay on subIdToSerial().
2024-09-29 16:47:29 -03:00
fiatjaf
ad14daec9f
allocate subscription id only once on creation.
2024-09-29 16:44:31 -03:00
fiatjaf
24343dbbef
reduce allocations at subscription.GetID() because why not.
2024-09-29 07:55:06 -03:00
fiatjaf
7e0f1bd43c
remove this forgotten makefile.
v0.38.0
2024-09-27 17:47:13 -03:00
fiatjaf
47d493b7e8
make libsecp256k1 available with a build tag.
2024-09-27 17:45:46 -03:00
fiatjaf
7503643e80
stop debuglogging duplicate "sending" messages, that has confused me absurdly.
v0.37.5
2024-09-26 21:12:19 -03:00
fiatjaf
69b97107a9
sdk: deduplicate relay selection for replaceable loader.
2024-09-26 21:09:18 -03:00
fiatjaf
ade77ad6c9
sdk: label some default queries.
2024-09-26 21:08:40 -03:00
fiatjaf
2c19358c3a
sdk: I am crazy and had removed the actual cache.Set() calls.
2024-09-26 21:08:16 -03:00
fiatjaf
0caf8deb56
WithUserAgent() pool option.
2024-09-26 19:18:34 -03:00
fiatjaf
2edc0fb713
sdk: optimize caching lists (so we don't fetch twice in a row).
v0.37.4
2024-09-25 23:45:49 -03:00
fiatjaf
1b786ab213
take subscription options in pool.SubMany*
2024-09-24 12:05:28 -03:00
1l0
39f7a99894
make context work
2024-09-24 10:59:35 -03:00
fiatjaf
23ddac33dd
hopefully fix a segfault with broken connections.
v0.37.3
2024-09-20 22:59:31 -03:00
fiatjaf
7fd28f6db0
negentropy: fix the two bugs @hoytech found.
v0.37.2
2024-09-20 22:41:49 -03:00
fiatjaf
4d63672462
negentropy: fix frameSizeLimit check (was checking against the hex).
2024-09-20 20:53:57 -03:00
fiatjaf
101031b9e8
negentropy: fix getMinimalBound() to go 2 hex chars each time instead of 1.
v0.37.1
2024-09-20 18:05:40 -03:00