@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) • 454 B
TypeScript
import { GlobalXpub, KeyValue } from '../../interfaces';
export declare function decode(keyVal: KeyValue): GlobalXpub;
export declare function encode(data: GlobalXpub): KeyValue;
export declare const expected = "{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";
export declare function check(data: any): data is GlobalXpub;
export declare function canAddToArray(array: GlobalXpub[], item: GlobalXpub, dupeSet: Set<string>): boolean;