@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
9 lines (8 loc) • 351 B
TypeScript
import { KeyValue, TapInternalKey } from '../../interfaces';
export declare function makeConverter(TYPE_BYTE: number): {
decode: (keyVal: KeyValue) => TapInternalKey;
encode: (data: TapInternalKey) => KeyValue;
check: (data: any) => data is TapInternalKey;
expected: string;
canAdd: (currentData: any, newData: any) => boolean;
};