107 Commits
Author SHA1 Message Date
Laan Tungir 4a53455190 Fix TLS read buffer in ws client: buffer excess SSL_read bytes to prevent loss of multiple WebSocket frames in a single TLS record v0.6.11 2026-07-28 12:21:21 -04:00
Laan Tungir 61581afcc9 Increase receive timeout from 50ms to 1000ms in synchronous_query_relays_with_progress
The 50ms receive timeout was too short for relays that need time to
process a REQ query before responding. The pool's query_sync already
uses 1000ms. This matches that behavior to avoid premature timeouts.
2026-07-28 10:14:30 -04:00
Laan Tungir 36eb6afa72 Handle NOTICE and CLOSED messages in synchronous_query_relays_with_progress
Pass NOTICE and CLOSED message content to the callback so callers
can see what the relay actually said (e.g. auth-required, restricted,
rate-limited). Previously these messages were silently ignored.
2026-07-28 09:38:53 -04:00
Laan Tungir 160421c673 Increase receive buffer from 8KB to 256KB in synchronous_query/publish functions
The 8KB buffer was too small for large Nostr events (e.g. long-form
content in kind 30023). The pool's query_sync already uses 256KB.
This matches that size to avoid truncation when using the standalone
synchronous query functions for backfill.
2026-07-28 07:50:56 -04:00
Laan Tungir 024b490ac1 Add nostr_signer_derive_hmac() (HMAC-SHA256 via local + nsigner derive verb) and ttyUSB serial enumeration
Rescued from uncommitted work in sovereign_browser/nostr_core_lib:
- nostr_signer_derive_hmac(): deterministic MAC over caller data using the
  signer's secp256k1 private key. Local backend computes HMAC-SHA256 directly;
  remote nsigner backend calls the 'derive' verb (algorithm:'secp256k1').
- nsigner_transport_list_serial(): enumerate /dev/ttyUSB* (FTDI/CH340/CP210x/
  PL2303 USB-serial adapters) in addition to /dev/ttyACM* CDC-ACM devices.
- tests/nsigner_client_test.c: local derive_hmac reference-match test.
2026-07-28 06:45:05 -04:00
Laan Tungir 9240f44ea3 Release v0.6.10: n_signer qrexec transport, nostr_index selector, prefixed wire verbs, NIP-03 OTS upgrade v0.6.10 2026-07-28 06:31:59 -04:00
Laan Tungir 933cf03ce7 Migrate remote signer calls to prefixed n_signer verbs 2026-07-28 06:31:43 -04:00
Laan Tungir 27da465295 Fix qrexec transport reconnect: blocking waitpid for old child, sync nsigner_client.c with reconnect logic 2026-07-28 06:31:43 -04:00
Laan Tungir 6ebab823a8 Add qrexec transport, nostr_index selector, and index_not_allowed error code for n_signer client 2026-07-28 06:31:43 -04:00
Laan Tungir a3337e5207 Add nostr_bip39_get_wordlist() public accessor for BIP-39 wordlist 2026-07-28 06:31:43 -04:00
Laan Tungir 932c770f6f Fix NIP-03 timestamp upgrade: tree-walk pending attestations, correct PREPEND op composition, and verify Bitcoin attestation completion 2026-07-28 06:31:43 -04:00
Laan Tungir be3a32b488 Fix NIP-03 OpenTimestamps parsing, multi-calendar proofs, upgrades, tests, and CLI tooling 2026-07-28 06:31:43 -04:00
Laan Tungir 3236e02f41 chore: stop tracking compiled test binaries with missing blobs (tests/nip03_live_test, websocket_debug) 2026-07-28 06:31:32 -04:00
Laan Tungir b51bcb4943 Migrated n_signer verb names to nostr_ prefix 2026-07-20 18:34:00 -04:00
Laan Tungir af06f23939 Fix NIP-59 dynamic buffer sizing for NIP-17 gift wraps 2026-04-11 15:53:44 -04:00
Laan Tungir fc337cf921 Implemented cooldown period in relay connection to prevent flapping 2026-04-10 06:13:02 -04:00
Laan Tungir f478a780d7 Add per-relay EOSE timeout fallback and robust subscription EOSE completion 2026-04-07 07:41:50 -04:00
laantungir 2e7eacc02e Update README checklist with not-applicable NIP markers and legend 2026-03-22 11:53:37 -04:00
laantungir ec8eb5555b Implement and validate NIP-03 live OpenTimestamps flow with HTTP/base64 fixes 2026-03-22 11:50:19 -04:00
Your Name a3a68f0fde added blossom client functionality. Unified curl 2026-03-21 20:40:25 -04:00
Your Name 2fe36acde4 cashu token fixed 2026-03-21 09:14:02 -04:00
laantungir f470759b96 Fix cashuB byte-string token encoding and add live testnut redeem-regenerate cashuB integration coverage 2026-03-21 07:59:49 -04:00
laantungir fb3c9dbc76 Fix NUT-00 hash_to_curve domain separator and expand live NIP-60 swap roundtrip diagnostics/tests 2026-03-20 19:18:25 -04:00
laantungir 303013a518 Fix Cashu hash_to_curve to NUT-00 spec and align live helper for send-proof compatibility 2026-03-20 15:30:09 -04:00
laantungir f7e179dd85 Confirm live testnut-based outbound token generation test run and documentation update 2026-03-20 11:26:07 -04:00
laantungir a3f7a1bbfd Add cashu_encode_token with cashuA/cashuB formats and live encode-decode validation 2026-03-20 10:59:13 -04:00
laantungir a595747aff Add Cashu keyset endpoints support and per-amount unblinding with live checkstate validation 2026-03-20 10:32:43 -04:00
laantungir 39ebfcd90a Add live NIP-60 Cashu receive integration test using nofee.testnut mint 2026-03-20 10:23:21 -04:00
Your Name 63972d974d Preserve Cashu mint error JSON on non-2xx responses for downstream diagnostics 2026-03-20 09:48:03 -04:00
Your Name 13fd364ca3 Add Cashu blinding helpers and secp256k1 point ops 2026-03-19 18:45:17 -04:00
Your Name cb4ff93906 Add Cashu token decode support for cashuA and cashuB 2026-03-19 18:19:45 -04:00
Your Name 4d0d794a9a Added cashu functionality. 2026-03-19 14:52:03 -04:00
Your Name ae672b7047 Added cashu functionality. 2026-03-19 14:32:14 -04:00
Your Name 0a8a813fcf Added cashu functionality. 2026-03-19 14:30:44 -04:00
Your Name ea40aec6b8 Added cashu functionality. 2026-03-19 14:25:53 -04:00
laantungir 98cfd81b01 Release v0.5.0 2026-03-19 09:13:59 -04:00
laantungir d8d3f9b28c just want to increment 2026-03-19 09:09:59 -04:00
laantungir 669793dd67 just want to increment 2026-03-19 09:09:46 -04:00
laantungir e21c8eb5be nip60 2026-03-19 09:01:11 -04:00
Your Name 20006df228 fix relay pool sync query repeat behavior and add regression test 2026-03-16 05:27:23 -04:00
Your Name adc7aa9dcf Delegate nostr_core_lib logging via callback and integrate single-file didactyl logging 2026-03-13 13:57:20 -04:00
Your Name 1a549afa19 Various changes 2026-03-05 15:18:44 -04:00
Your Name 6ee62e6575 Add relay state transition cause capture in poll loop 2026-03-05 15:18:13 -04:00
Your Name 5afe802e8f Fix oversized ws frame handling and increase receive buffers 2026-03-05 14:42:14 -04:00
Your Name e77973aea0 query_sync: forward non-matching relay messages to pool dispatch 2026-03-05 14:07:11 -04:00
Your Name ea84795911 relay_pool: skip reconnect attempts in publish_async 2026-03-05 11:01:21 -04:00
Your Name 481bf3158d Add socket recv/send timeouts after connect to prevent websocket poll hangs on half-broken connections 2026-03-05 10:39:51 -04:00
laantungir 23e68bdc83 Add NIP-42 auth support to relay pool with verbose auth diagnostics test and docs updates 2026-03-01 08:49:55 -04:00
laantungir 4dc753cdcc Implement NIP-46 remote signing API, tests/example, build integration, and refresh README docs 2026-02-28 09:53:35 -04:00
Your Name 64b7c7ec33 Fix SSL_pending busy-wait causing 100% CPU usage
The tls_recv() function was skipping the select() call when SSL_pending()
returned non-zero, causing a tight busy-wait loop. This fix ensures select()
is always called, using a zero timeout when SSL has buffered data to return
immediately, or the full timeout to properly block when waiting for new data.

This prevents the relay client from consuming 100% CPU while maintaining
the WebSocket connection.
2026-02-03 14:16:00 -04:00