/** * Bitcoin Transaction Module * * Provides Bitcoin transaction building and signature hash computation. * Implements Bitcoin protocol transaction structure and SIGHASH_ALL signing. */ /** * UTXO input for transaction building */ export interface UTXOInput { txid: string; vout: number; value: number; scriptPubKey: string; } /** * Multi-input transaction building parameters */ export interface MultiInputTransactionParams { utxos: UTXOInput[]; destination: string; amount: number; changeAddress: string; changeAmount: number; network: string; pkpPublicKey: string; } /** * Multi-input transaction building result */ export interface MultiInputTransactionResult { txHex: string; sigHashes: string[]; } /** * Build a multi-input Bitcoin SegWit (P2WPKH) transaction and compute per-input signature hashes. * * All inputs must be P2WPKH outputs belonging to the same vault address (same scriptPubKey structure). * * BIP 143 SIGHASH_ALL for multiple inputs: * hashPrevouts = dSHA256(all outpoints concatenated) * hashSequence = dSHA256(all sequences concatenated) * hashOutputs = dSHA256(all outputs concatenated) — same for every input * sigHash_i = dSHA256(nVersion + hashPrevouts + hashSequence + outpoint_i + scriptCode_i + value_i + nSequence_i + hashOutputs + nLocktime + nHashType) */ export declare function buildBitcoinTransactionMultiInput(params: MultiInputTransactionParams): MultiInputTransactionResult; //# sourceMappingURL=transaction.d.ts.map