nwc-ruby 0.2.1
A production-grade Ruby client for Nostr Wallet Connect (NIP-47). Handles the Nostr protocol, NIP-04 and NIP-44 v2 encryption, secp256k1 key derivation, Schnorr signing, and — most importantly — a reliable long-running WebSocket connection to the relay with heartbeat pings, forced recycle, exponential backoff, and SIGTERM handling. Developers call `pay_invoice`, `make_invoice`, `lookup_invoice`, etc. and `subscribe_to_notifications { |n| ... }` — the transport reliability is hidden.
Gemfile:
=
install:
=
Runtime Dependencies (7):
async
~> 2.10
async-http
~> 0.70
async-websocket
~> 0.26
base64
~> 0.2
ecdsa
~> 1.2
logger
~> 1.6
rbsecp256k1
~> 6.0