UNPKG

@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

37 lines (36 loc) 1.39 kB
/// <reference types="node" /> import { typeforce } from "@okxweb3/crypto-lib"; export { typeforce }; export declare function isPoint(p: Buffer | number | undefined | null): boolean; export declare function UInt31(value: number): boolean; export declare function BIP32Path(value: string): boolean; export declare namespace BIP32Path { var toJSON: () => string; } export declare function Signer(obj: any): boolean; export declare function Satoshi(value: number): boolean; export interface Tapleaf { output: Buffer; version?: number; } export declare const TAPLEAF_VERSION_MASK = 254; export declare function isTapleaf(o: any): o is Tapleaf; export type Taptree = [Taptree | Tapleaf, Taptree | Tapleaf] | Tapleaf; export declare function isTaptree(scriptTree: any): scriptTree is Taptree; export declare const Buffer256bit: any; export declare const Hash160bit: any; export declare const Hash256bit: any; export declare const Number: any; export declare const Array: any; export declare const Boolean: any; export declare const String: any; export declare const Buffer: any; export declare const Hex: any; export declare const maybe: any; export declare const tuple: any; export declare const UInt8: any; export declare const UInt32: any; export declare const Function: any; export declare const BufferN: any; export declare const Null: any; export declare const oneOf: any;