UNPKG

@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.

8 lines (7 loc) 588 B
import { Network } from '../bitcoinjs-lib'; export declare function GetBitcashAddressByHash(prefix: string, type: string, hash: Uint8Array): string; export declare function GetBitcashAddressByPublicKey(prefix: string, type: string, publicKey: Uint8Array): string; export declare function GetBitcashP2PkHAddressByPublicKey(publicKey: Uint8Array): string; export declare function ValidateBitcashP2PkHAddress(address: string): boolean; export declare function isCashAddress(address: string): boolean; export declare function convert2LegacyAddress(address: string, network: Network): string;