UNPKG

@tronlink/core

Version:

The library serves as a core module within TronLink Extension, which provides low-level wallet functionality for both Tron and Ethereum networks, primary features includes account generation and transaction signing

22 lines (21 loc) 656 B
import Transport from '@ledgerhq/hw-transport'; import AppEth from '@ledgerhq/hw-app-eth'; import { LedgerWebHid } from '../../base_wallet/ledger'; import { EvmWallet } from '../EvmWallet'; export declare class LedgerEthWebHid extends LedgerWebHid { _transport?: Transport; _app?: AppEth; getWallet(): EvmWallet; signTransaction(transaction: any, path: string): Promise<{ r: string; s: string; v: string; }>; signTypedData(data: any, path: string): Promise<{ v: number; s: string; r: string; }>; protected makeApp(): Promise<AppEth>; protected cleanUp(): Promise<void>; }