aboutsummaryrefslogtreecommitdiffstats
path: root/src/ark/manager.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-05 12:39:05 -0700
committerAdam Soltys <[email protected]>2026-08-05 12:39:05 -0700
commit47919c94e861e98fc5c21956c3c53e896052aea4 (patch)
treee77435dc9065991b242341464c70543bf7f37457 /src/ark/manager.js
parent68fd614f8cb404904e1939ab711f7c7ba4350c32 (diff)
downloadcoinosv3-47919c94e861e98fc5c21956c3c53e896052aea4.tar.gz
coinosv3-47919c94e861e98fc5c21956c3c53e896052aea4.zip
Boards show the server their funding tx, as mainnet now insists
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M5kFodm9azZJVTQxnkDdKe
Diffstat (limited to 'src/ark/manager.js')
-rw-r--r--src/ark/manager.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ark/manager.js b/src/ark/manager.js
index a478d19..84c0769 100644
--- a/src/ark/manager.js
+++ b/src/ark/manager.js
@@ -1223,9 +1223,11 @@ export class ArkManager {
fundingOutpointRaw,
});
const nonces = musig2.nonceGen(keys.pubkey, keys.privkey, undefined, board.sighash);
+ const fundingTxHex = await this.chain.getTxHex(action.fundingTxid);
const cosign = await requestBoardCosign(this.arkUrl, {
amountSat: action.amountSat, fundingOutpointRaw,
expiryHeight: action.expiryHeight, userPub: keys.pubkey, pubNonce: nonces.public,
+ fundingTxBytes: fundingTxHex ? hex.decode(fundingTxHex.trim()) : undefined,
});
const finalSig = combineBoardSignature({ board, serverCosign: cosign, userNonces: nonces, vtxoKeys: keys, serverPub: this.serverPub });
action.vtxoBytes = hex.encode(encodeBoardVtxo({