/// import * as bip32 from 'bip32'; import { Blockchain, Wallet } from '../types'; export declare enum CoinType { BTC = 0, LTC = 2, DOGE = 3, ETH = 60, ETC = 61, BCH = 145, DOT = 354, ERD = 508, NEO = 888, NEO3 = 888, POLYGON = 966, AVAXC = 9000, ABRITRUM = 9001 } /** * Creates a wallet for a given token via the * [BIP-44 protocol]((https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki). * * Requires the user's master seed. */ export declare function generateWallet(masterSeed: Buffer, coinType: CoinType, index: number, net?: string, blockchain?: Blockchain): Wallet; /** * Creates the keypair used for signing payloads. Used during Nash Protocol * initialization. */ export declare function generateNashPayloadSigningKey(masterSeed: Buffer, index: number): Wallet; /** * Generates a deterministic key according to the BIP-44 spec. * * `M' / purpose' / coin' / account' / change / index` * `M' / 44' / coin' / 0' / 0` */ export declare function generateBIP44Key(masterSeed: Buffer, coinType: CoinType, index: number): bip32.BIP32Interface; /** * Derives a new key from the extended key for the given index. */ export declare function deriveIndex(extendedKey: bip32.BIP32Interface, index: number): bip32.BIP32Interface; export declare const coinTypeFromString: (s: string) => CoinType; export declare const blockchainFromString: (name: string) => Blockchain; export declare function neoGetPublicKeyFromPrivateKey(privateKey: string, encode?: boolean): string; export declare function sha256(hex: string): string; export declare function ripemd160(hex: string): string; export declare function hash160(hex: string): string; export declare function hash256(hex: string): string; export declare const getAddressFromScriptHash: (scriptHash: string, addressVersion: string) => string;