diff options
| author | Adam Soltys <[email protected]> | 2026-07-31 12:05:59 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-31 12:05:59 -0700 |
| commit | 142fa01322e624ac12dc24ee7af2583bda89e891 (patch) | |
| tree | 1ba901bb01046327e9f1c89c38ccecb9bf454b04 /src/features | |
| parent | 49da2555e84da4a461c070c0d7bb7032c6bb52e4 (diff) | |
| download | coinosv3-142fa01322e624ac12dc24ee7af2583bda89e891.tar.gz coinosv3-142fa01322e624ac12dc24ee7af2583bda89e891.zip | |
Client support for third-party HTLC vtxos (trustless swap bridges)
Speaks the proposed VtxoPolicy::Htlc (type byte 0x08): policy encode/decode,
two-leaf taproot (claimer-with-preimage / refunder-after-expiry), preimage
field on the arkoor cosign request, and GetHtlcPreimage.
ArkManager gains the swap primitives: htlcLock (lock funds claimable only
against a payment hash, refundable by us after expiry), htlcClaim (reveal the
preimage), htlcCosignRefund (hand an unclaimable HTLC back — the server
constrains the outputs to the refunder, so this is safe to expose publicly)
and acceptHtlcRefund.
tools/ark/htlc-bridge-test.js drives a full submarine swap between two
independent wallets against a patched captaind, and asserts the ASP rejects
both a wrong-preimage claim and a preimage-less spend to the bridge itself.
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/features')
0 files changed, 0 insertions, 0 deletions
