UNPKG

@arkade-os/sdk

Version:

Bitcoin wallet SDK with Taproot and Ark integration

21 lines (20 loc) 680 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extendVirtualCoin = extendVirtualCoin; exports.extendCoin = extendCoin; function extendVirtualCoin(wallet, vtxo) { return { ...vtxo, forfeitTapLeafScript: wallet.offchainTapscript.forfeit(), intentTapLeafScript: wallet.offchainTapscript.forfeit(), tapTree: wallet.offchainTapscript.encode(), }; } function extendCoin(wallet, utxo) { return { ...utxo, forfeitTapLeafScript: wallet.boardingTapscript.forfeit(), intentTapLeafScript: wallet.boardingTapscript.forfeit(), tapTree: wallet.boardingTapscript.encode(), }; }