@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.
10 lines (9 loc) • 477 B
TypeScript
/// <reference types="node" />
import { Bip32Derivation, KeyValue } from '../../interfaces';
export declare function makeConverter(TYPE_BYTE: number, isValidPubkey?: (pubkey: Buffer) => boolean): {
decode: (keyVal: KeyValue) => Bip32Derivation;
encode: (data: Bip32Derivation) => KeyValue;
check: (data: any) => data is Bip32Derivation;
expected: string;
canAddToArray: (array: Bip32Derivation[], item: Bip32Derivation, dupeSet: Set<string>) => boolean;
};