UNPKG

@okxweb3/coin-bitcoin

Version:

@ok/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) 407 B
import { KeyValue, TapTree } from '../../interfaces'; export declare function decode(keyVal: KeyValue): TapTree; export declare function encode(tree: TapTree): KeyValue; export declare const expected = "{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }"; export declare function check(data: any): data is TapTree; export declare function canAdd(currentData: any, newData: any): boolean;