aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-28 19:19:17 -0700
committerAdam Soltys <[email protected]>2026-06-28 19:19:17 -0700
commit656726e17684071e929a2f0453cdd306c4d8dc12 (patch)
tree3530fc737a77d43974beec807aac60a6e8303c9f /src/api.js
parent93631253030839509551d7e1e6a995ed60e31b96 (diff)
downloadcoinosv3-656726e17684071e929a2f0453cdd306c4d8dc12.tar.gz
coinosv3-656726e17684071e929a2f0453cdd306c4d8dc12.zip
Swaps: gate 'Receive over Lightning' on watch-only (was throwing 'uint8array expected')
A watch-only wallet has no private key, so swapNode().privateKey is null and startReverse's sha256(node.privateKey) threw 'uint8array expected'. The receive card wasn't gated by watchOnly (the pay card already was). Hide both for watch-only and show a prompt to re-enter the recovery phrase, since swaps need the key to derive the preimage and claim on-chain. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions