UNPKG

@vbyte/btc-dev

Version:

Batteries-included toolset for plebian bitcoin development

39 lines (38 loc) 1.08 kB
export declare const COINBASE: { TXID: string; VOUT: number; }; export declare const DEFAULT: { LOCKTIME: number; SEQUENCE: number; VERSION: number; }; export declare const TAPLEAF_VERSIONS: number[]; export declare const TAPLEAF_DEFAULT_VERSION = 192; export declare const LOCK_SCRIPT_TYPE: { readonly P2PKH: "p2pkh"; readonly P2SH: "p2sh"; readonly P2WPKH: "p2wpkh"; readonly P2WSH: "p2wsh"; readonly P2TR: "p2tr"; readonly OPRETURN: "opreturn"; }; export declare const SPEND_SCRIPT_TYPE: { readonly P2PKH: "p2pkh"; readonly P2SH: "p2sh"; readonly P2WPKH: "p2wpkh"; readonly P2WSH: "p2wsh"; readonly P2TR: "p2tr"; readonly P2TS: "p2ts"; }; export declare const LOCK_SCRIPT_REGEX: Record<string, RegExp>; export declare const SCRIPT_INT_KEY = ""; export declare const TX_SIZE: { GLOBAL_BASE: number; GLOBAL_WIT: number; TXIN_BASE: number; TXOUT_BASE: number; }; export declare const SIGHASH_DEFAULT = 1; export declare const SIGHASH_SEGWIT: number[]; export declare const SIGHASH_TAPROOT: number[];