@okxweb3/coin-bitcoin
Version:
@okxweb3/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals
7 lines (6 loc) • 469 B
TypeScript
import { KeyValue, TapLeafScript } from '../../interfaces';
export declare function decode(keyVal: KeyValue): TapLeafScript;
export declare function encode(tScript: TapLeafScript): KeyValue;
export declare const expected = "{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";
export declare function check(data: any): data is TapLeafScript;
export declare function canAddToArray(array: TapLeafScript[], item: TapLeafScript, dupeSet: Set<string>): boolean;