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
fiatjaf
0bcefc86ef
negentropy: return our version if we are a server and got the wrong version (blergh).
2024-09-20 17:47:55 -03:00
fiatjaf
b870a78622
a test for c07528eb
v0.37.0
2024-09-20 14:05:45 -03:00
fiatjaf
9813d1776f
negentropy: fuzz testing, move accumulator to vector package.
2024-09-20 10:57:00 -03:00
fiatjaf
e9e96be95e
negentropy: fix one stupid bug and rename Initiate() to Start().
2024-09-19 15:53:04 -03:00
fiatjaf
15aa7ac31e
nip17: PublishMessage()
2024-09-19 12:58:20 -03:00
fiatjaf
8327310d52
improve SimplePool authHandler, rename IncomingEvent to RelayEvent so we can use it there.
2024-09-19 12:28:42 -03:00
fiatjaf
c07528eb42
fix event kind range helpers.
2024-09-19 11:38:22 -03:00
fiatjaf
f94199cfc0
negentropy: refactor for allowing different types of storage.
2024-09-19 11:35:16 -03:00
fiatjaf
3d58ac5ec2
negentropy: create Haves and HaveNots channels so they can be listened to immediately.
2024-09-19 11:35:16 -03:00
fiatjaf
b1dd120ec7
negentropy: slightly faster encodeVarInt()
2024-09-19 11:35:16 -03:00
fiatjaf
6910f391fe
negentropy: small refactors here and there, comments and making the code clearer.
2024-09-19 11:35:16 -03:00
kehiy
47243fdcc4
feat(event): adding more helpers.
2024-09-19 11:34:31 -03:00
Cronus
c8c295f839
NIP-96 sign payload, content field for file caption ( #148 )
...
* content in upload response for file caption as in NIP-94, optional signing of file payload in NIP-98 header
* Content in NIP-94 as well
2024-09-19 11:33:02 -03:00
1l0
0b2b69529b
error aware Keyer.GetPublicKey
2024-09-19 11:13:55 -03:00
fiatjaf
e1cdb71d6f
negentropy: mention that we forked from that other repo.
2024-09-17 17:23:08 -03:00
fiatjaf
243343f0c5
nip46: add nip04_encrypt and nip04_decrypt to client.
v0.36.3
2024-09-17 11:25:13 -03:00
fiatjaf
9d1a6fab68
keyer: fix KeySigner and add a method for making one from scratch.
2024-09-17 08:30:15 -03:00
fiatjaf
2b04ea9bc1
sdk: do not track hints from ephemeral events.
2024-09-17 08:06:04 -03:00
fiatjaf
2c09338ecb
sdk/hints: sqlite backend and tests.
v0.36.2
2024-09-16 22:23:55 -03:00
fiatjaf
4c9ab850a5
negentropy: default frameSizeLimit to basically infinite.
2024-09-16 22:10:03 -03:00
fiatjaf
1e4e91f257
nip19: fail to decode entities with wrong length.
2024-09-16 17:35:23 -03:00
fiatjaf
515f76bd86
add a default user-agent: github.com/nbd-wtf/go-nostr.
...
fixes https://github.com/nbd-wtf/go-nostr/issues/147
2024-09-16 07:11:19 -03:00
fiatjaf
a54852f439
CompareEvent() for helping with slices.BinarySearch()
v0.36.1
2024-09-15 12:57:51 -03:00
fiatjaf
87e696eecb
nip17: include recipient "p" tag.
2024-09-15 12:57:36 -03:00
fiatjaf
db023e12e9
keyer, nip17, nip44, nip59: this time is different!
2024-09-15 11:11:49 -03:00
fiatjaf
f976296e01
more fixes and tweaks to keyer, 17, 44 and 59.
2024-09-14 23:23:53 -03:00
fiatjaf
46a0c95b96
some tweaks to 17, 44 and 59.
2024-09-14 22:47:43 -03:00