Auto-acquire Cashu tokens for NIP-46 bunker connections (v0.2.0)

- Add acquireTokenIfNeeded() in BunkerSigner to get CAT before connecting
- Check /cashu/info to detect CAT-enabled relays
- Request token via cashuTokenService with NIP-98 auth using ephemeral key
- Store and reuse tokens across sessions
- Pass token as query parameter on WebSocket connection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
mleku
2025-12-28 19:33:19 +02:00
parent 2aa0a8c460
commit a268c63082
30 changed files with 1458 additions and 53 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "smesh",
"version": "0.1.0",
"version": "0.2.0",
"description": "A user-friendly Nostr client for exploring relay feeds",
"private": true,
"type": "module",