aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-01 11:39:29 -0700
committerAdam Soltys <[email protected]>2026-08-01 11:39:29 -0700
commit0319e2fd392fc7e8569fbb6a88a6a1dd65e9d539 (patch)
tree93ad2c2353054d3dc93ac261aff690e5e63d1a99 /build.js
parent4c1f05a3f287f3b5df1319008081cf6df7550647 (diff)
downloadcoinosv3-0319e2fd392fc7e8569fbb6a88a6a1dd65e9d539.tar.gz
coinosv3-0319e2fd392fc7e8569fbb6a88a6a1dd65e9d539.zip
Sync NWC connections across devices
A connection made on the phone existed only there, so only that device could answer it — and if that device was asleep, a client just spun. Connections now ride the encrypted device-sync snapshot, so whichever device is awake can serve them. The snapshot is nip44-encrypted to a key derived from the seed, the same channel that already carries ark vtxo bytes and gift secrets. The merge is a union by id with two rules that matter: - REVOCATION WINS, so a stale snapshot can never resurrect a revoked connection - the higher same-day spend wins, so a stale device cannot hand a connection back its daily budget Creating or revoking a connection publishes the snapshot immediately rather than waiting for the next state change. Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'build.js')
0 files changed, 0 insertions, 0 deletions