@arklabs/wallet-sdk
Version:
Bitcoin wallet SDK with Taproot and Ark integration
12 lines (11 loc) • 766 B
TypeScript
import { Transaction } from "@scure/btc-signer";
import { VirtualCoin } from "../wallet";
import { Output } from "../providers/ark";
import { EncodedVtxoScript, TapLeafScript } from "../script/base";
export declare const CONDITION_WITNESS_KEY_PREFIX: Uint8Array<ArrayBufferLike>;
export declare const VTXO_TAPROOT_TREE_KEY_PREFIX: Uint8Array<ArrayBufferLike>;
export declare function addVtxoTaprootTree(inIndex: number, tx: Transaction, scripts: Uint8Array[]): void;
export declare function addConditionWitness(inIndex: number, tx: Transaction, witness: Uint8Array[]): void;
export declare function createVirtualTx(inputs: ({
tapLeafScript: TapLeafScript;
} & EncodedVtxoScript & Pick<VirtualCoin, "txid" | "vout" | "value">)[], outputs: Output[]): Transaction;