diff options
| author | Adam Soltys <[email protected]> | 2026-06-27 15:15:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-27 15:15:04 -0700 |
| commit | 2edad313d270354eb2f8e3420272897c14325f42 (patch) | |
| tree | deaa24d98019aff05f03b2eef0231df5a6ab74e8 /src/api.js | |
| parent | 68edd804f1696aa412da2357a469c013f0a3e92d (diff) | |
| download | coinosv3-2edad313d270354eb2f8e3420272897c14325f42.tar.gz coinosv3-2edad313d270354eb2f8e3420272897c14325f42.zip | |
Spend received silent-payment outputs (taproot key-path)
buildTx now includes received SP outputs in the coin pool, and sign() spends them
as taproot key-path inputs signed manually with d = spend_priv + t_k (the output
key is used raw — no BIP-341 tweak — so btc-signer's auto key-path signing
doesn't apply; we set tapKeySig from preimageWitnessV1 + schnorr.sign). The fee
estimator is fed a tapInternalKey (sizing only) with disableScriptCheck. SP value
folds into the displayed balance. Paying an sp1… recipient still uses BIP84 coins
(SP-input-funded SP sends need even-Y handling, deferred).
Validated on regtest via testmempoolaccept: a wallet-built, wallet-signed spend
of a received SP output is accepted by Core.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
