UNPKG

@arkade-os/sdk

Version:

Bitcoin wallet SDK with Taproot and Ark integration

17 lines (16 loc) 537 B
export function extendVirtualCoin(wallet, vtxo) { return { ...vtxo, forfeitTapLeafScript: wallet.offchainTapscript.forfeit(), intentTapLeafScript: wallet.offchainTapscript.forfeit(), tapTree: wallet.offchainTapscript.encode(), }; } export function extendCoin(wallet, utxo) { return { ...utxo, forfeitTapLeafScript: wallet.boardingTapscript.forfeit(), intentTapLeafScript: wallet.boardingTapscript.forfeit(), tapTree: wallet.boardingTapscript.encode(), }; }