UNPKG

@vbyte/btc-dev

Version:

Batteries-included toolset for plebian bitcoin development

11 lines (10 loc) 747 B
import { Buff } from '@vbyte/buff'; import type { SigHashOptions, TxData, TxInput, TxOutput } from '../../types/index.js'; export declare function hash_taproot_tx(template: TxData | string, config?: SigHashOptions): Buff; export declare function get_taproot_tx_preimage(template: TxData | string, config?: SigHashOptions): Buff; export declare function bip341_hash_outpoints(vin: TxInput[]): Buff; export declare function bip341_hash_sequence(vin: TxInput[]): Buff; export declare function bip341_hash_amounts(prevouts: TxOutput[]): Buff; export declare function bip341_hash_scripts(prevouts: TxOutput[]): Buff; export declare function bip341_hash_outputs(vout: TxOutput[]): Buff; export declare function bip341_hash_output(vout: TxOutput): Buff;