bitspire/packages/nostr-client
Padreug 5179a21da6 fix(nostr-client): reject non-ws(s):// relays in the spire seed
The npubs in the seed are bech32-checksummed, so a mis-scanned character is
caught — but the relay strings are raw inside the base64. A QR misread silently
turned `ws://192.168.0.32:5001/...` into `As://192.168.0.32:5001/...`, which
parsed fine and then crash-looped the machine on an unreachable NIP-46 relay.

Validate every `relays[]` entry (and `bunker_relay`) is a `ws://`/`wss://` URL
at parse time, so a garbled scan is rejected as an invalid seed instead of
persisted. Part of bitspire-#70 pairing robustness.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 21:53:51 +00:00
..
dev chore(nostr-client): move dev scripts to dev/ folder 2026-02-16 17:48:49 -05:00
scripts feat(docker): add dev.sh with auto-funding and ATM app setup 2026-02-15 14:19:16 -05:00
src fix(nostr-client): reject non-ws(s):// relays in the spire seed 2026-07-02 21:53:51 +00:00
package-lock.json refactor(rename): @lamassu/* → @bitSpire/* package scopes 2026-06-01 19:08:03 +02:00
package.json refactor(rename): @lamassu/* → @bitSpire/* package scopes 2026-06-01 19:08:03 +02:00
tsconfig.json feat(docker): add dev.sh with auto-funding and ATM app setup 2026-02-15 14:19:16 -05:00
vitest.config.ts feat(docker): add dev.sh with auto-funding and ATM app setup 2026-02-15 14:19:16 -05:00