eth-janus
Version:
Indirection service
21 lines (20 loc) • 810 B
TypeScript
import { IStorageProvider } from "../interfaces/istorage-provider";
import { OnetimeKey } from "../common/models";
export declare class OnetimeKeyGeneratorService {
private walletCache;
private mnemonics;
constructor(mnemonic: string, storageProvider: IStorageProvider);
getOnetimeKey(txnRef: string, networkId: string): Promise<OnetimeKey>;
signTransaction(txnRef: string, networkId: string, txn: any, web3: any): Promise<{
signedTx: string;
signedTxObj: any;
rawTx: any;
}>;
signMessage(txnRef: string, networkId: string, message: string): Promise<string>;
private createOrGetOnetimeKeyFromStorage;
/**
* gets the wallet address path using the next index in the sequence
*/
private getNextAddressPath;
private bitcorePublicKey;
}