fiatjaf
36ddf1eb36
sdk: FetchSpecific from input string or from a pointer.
2025-01-12 21:29:39 -03:00
Alessio Perugini
967a08fb65
nip17: fix nil pointer
...
Fixes a nil pointer when the Publish succeeds.
In that case the err is nil, and calling .Error() on nil causes a nil
pointer exception.
Reproduced at: https://play.golang.com/p/ps8d82Qt9kO
2025-01-05 12:11:04 -03:00
fiatjaf
defc349e57
use coder/websocket for everything, get rid of gobwas.
...
supposedly it is faster, and anyway it's better to use it since we're already using it for wasm/js.
(previously named nhooyr/websocket).
2025-01-03 01:15:17 -03:00
fiatjaf
b33cfb19fa
rename option pool.WithQueryMiddleware() to pool.WithAuthorKindQueryMiddleware().
2025-01-03 00:12:34 -03:00
fiatjaf
668720f4bc
sdk: forgot to create replaceable/addressable loader slices.
2025-01-03 00:12:14 -03:00
fiatjaf
5875b644a2
sdk: fetching sets.
2025-01-02 12:19:06 -03:00
reis
63919cf685
support wasm ( #163 )
2025-01-02 09:42:04 -03:00
fiatjaf
a7a66add61
sdk: fix references test.
2025-01-01 20:55:12 -03:00
fiatjaf
c2c08ab6bc
more list fetchers.
2025-01-01 18:16:36 -03:00
fiatjaf
159e5d21e6
some mildly useful helpers for pointers in general.
2025-01-01 17:59:02 -03:00
fiatjaf
acf63fa7cd
fetchspecificevent also accepts a hex id and saves hints.
2025-01-01 17:59:02 -03:00
fiatjaf
08d6943dd1
references returns an iterator because why not?
2025-01-01 17:59:02 -03:00
dtonon
dcd5030fcd
Add NIP-22 support
2025-01-01 17:58:51 -03:00
fiatjaf
ef0717afb6
add nip14.GetSubject()
2024-12-31 22:45:14 -03:00
fiatjaf
a4bae38f68
add nip92 imeta parsing helper.
2024-12-29 14:07:21 -03:00
fiatjaf
91efcb3825
remove support for extra fields in events -- was deprecated.
2024-12-28 14:19:28 -03:00
fiatjaf
053b3afee7
ignore libsecp256k1 dir so it doesn't show on code searches.
2024-12-26 17:05:49 -03:00
fiatjaf
46645ad4d6
vendor libsecp256k1 so it doesn't depend on a shared library.
2024-12-26 17:05:17 -03:00
fiatjaf
95ddacb9f3
sdk: track query attempts automatically and other small tweaks to replaceable fetching and stuff.
v0.45.0
2024-12-24 00:15:10 -03:00
fiatjaf
3b3d5cce7b
sdk/hints: adapt sqlite to also support postgres.
2024-12-23 18:48:29 -03:00
fiatjaf
9aac901c03
sdk/hints/sqlite: unceremoniously rename table to nostr_sdk_pubkey_relays.
v0.44.2
2024-12-23 10:02:06 -03:00
fiatjaf
1778706817
add nip23 markdown helper.
2024-12-23 09:17:51 -03:00
fiatjaf
d0476edd06
nip19: guard against broken TLVs.
...
fixes https://github.com/nbd-wtf/go-nostr/issues/161
2024-12-18 11:53:14 -03:00
fiatjaf
2dba8fc3e0
fix count test from hll breaking change.
2024-12-17 13:31:53 -03:00
fiatjaf
ade3996fbf
nip77: simplify direction selection.
2024-12-17 13:30:49 -03:00
Gabriel Moura
b02f0d6537
implements direction to nip77
2024-12-17 13:26:03 -03:00
fiatjaf
f22d4b7692
make it clear that a message was _received_ from a given relay on log output.
v0.44.1
2024-12-17 11:06:36 -03:00
fiatjaf
82b8602fa8
fix log_debug after jsoniter change.
2024-12-17 11:06:05 -03:00
fiatjaf
9cb853d6b1
nip46: fix IsValidBunkerURL because that regex was borked.
2024-12-17 11:05:43 -03:00
fiatjaf
11bdc95a37
nip46: label subscription.
2024-12-17 11:05:27 -03:00
fiatjaf
1106329c95
return hyperloglog value from Relay.Count()
v0.44.0
2024-12-10 23:24:45 -03:00
fiatjaf
e8d9464938
fix parsing COUNT envelopes without "hll".
v0.43.0
2024-12-07 00:21:58 -03:00
fiatjaf
142da7344f
nip45: remove hyperloglog tests as they have to be rewritten with the new deterministic model.
2024-12-07 00:14:41 -03:00
fiatjaf
851116d2e3
Merge branch 'hyperloglog'
2024-12-07 00:13:23 -03:00
fiatjaf
529ade9376
nip45: hyperlolog small fixes and improvements. support deterministic offset for hardcoded set of queries.
2024-12-07 00:12:43 -03:00
fiatjaf
72d9aac9b1
replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too.
2024-12-03 00:49:27 -03:00
fiatjaf
6f778f85ba
always use fastsign option on btcec schnorr.
2024-12-02 10:38:05 -03:00
fiatjaf
a546203758
nip11: support hex nip numbers as strings.
2024-11-30 08:53:08 -03:00
fiatjaf
9df2fc8d7b
hints: prevent malicious timestamp hints to bork calculations.
2024-11-28 21:29:47 -03:00
fiatjaf
2519cab5ae
sdk: validate nip05.
v0.42.3
2024-11-27 10:23:28 -03:00
fiatjaf
a1a4c04a18
nip05: identifier to url.
2024-11-27 10:16:52 -03:00
fiatjaf
1ac5516440
sdk: mutelist cache.
2024-11-27 00:59:34 -03:00
fiatjaf
c5c9bba586
nip77: remove bloom filter, use a map.
2024-11-26 13:22:37 -03:00
fiatjaf
98d3766474
fix race condition on ticker ping.
...
fixes nevent1qqszqakrmmjyjelgp06f3hx0fu70xyvmqt4ed8v65xpmpy9g8nj9qgqpz4mhxue69uhkummnw3ezummcw3ezuer9wchsz9nhwden5te0dehhxarjv4kxjar9wvhx7un89uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcnynjra
2024-11-24 14:49:32 -03:00
1l0
72c7892a8b
kinds: fix typo
2024-11-22 07:55:39 -03:00
fiatjaf
0d40b40c9c
pool: support CountMany() using hyperloglog.
2024-11-16 17:47:42 -03:00
fiatjaf
99e45035d5
nip45: simplify algorithm and hardcode to precision 8.
2024-11-15 20:46:31 -03:00
fiatjaf
59fc2be652
nip45: hyperloglog implementation.
2024-11-15 20:46:31 -03:00
fiatjaf
898455cbe6
nip46: better error messages on decrypt failure.
v0.42.2
2024-11-12 17:29:19 -03:00
fiatjaf
903770f78d
nip46: check signatures incoming from bunkers by default.
2024-11-12 17:29:19 -03:00