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