UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

31 lines (30 loc) 936 B
import { CurrencyCode, Network } from './interfaces'; declare global { interface Window { ZumoCoreModule: any; } } /** * Crypto utility interface describes methods for mnemonic phrase generation and * Bitcoin/Ethereum address validation. */ export declare class Utils { /** @internal */ zumoCoreModule: any; /** @internal */ utilsImpl: any; /** @internal */ constructor(zumoCoreModule: any, utilsImpl: any); /** * Generates mnemonic seed phrase used in wallet creation process. * @param wordCount 12, 15, 18, 21 or 24 */ generateMnemonic(wordCount: number): string; /** * Validates Ethereum, Bitcoin or Bitcoin SV address. * @param currencyCode 'ETH', 'BTC or 'BSV' * @param address blockchain address * @param network network type */ isValidAddress(currencyCode: CurrencyCode, address: string, network: Network): boolean; }