diff options
| author | Your Name <you@example.com> | 2026-05-18 23:20:22 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 23:20:22 +0530 |
| commit | 980c98d2c9dbff7b4d87c867c6638637e063f984 (patch) | |
| tree | eee75aa12748c7e83794378213df13eec5d974df /components/nucula_lib/nucula_wallet.cpp | |
| parent | 83967b17b234629fc0a3679296cafda08f5a9f37 (diff) | |
fix: CVM subscription #p array format + WS response + use-after-free
Critical fixes for CVM MCP roundtrip over Nostr relay:
- Fix subscription filter: #p must be array not string (relay rejected with 'bad req')
- Publish MCP responses via existing WS connection instead of opening new TLS
- Fix use-after-free: tags_str freed before nostr_event_to_json used it
- Pass esp_tls_t through process_relay_message -> handle_mcp_message chain
Verified on Board B via relay.primal.net:
- MCP initialize roundtrip: PASS
- tools/call get_config: PASS (returns device config)
- tools/call get_balance: PASS (returns balance_sats, proof_count)
- CEP-6 announcements (kinds 11316, 11317, 10002): all accepted by relay
Diffstat (limited to 'components/nucula_lib/nucula_wallet.cpp')
0 files changed, 0 insertions, 0 deletions