MyCrypto/common/libs/wallet/mnemonic.ts

9 lines
306 B
TypeScript

import { decryptMnemonicToPrivKey } from 'libs/decrypt';
import PrivKeyWallet from './privkey';
export default class MnemonicWallet extends PrivKeyWallet {
constructor(phrase: string, pass: string, path: string, address: string) {
super(decryptMnemonicToPrivKey(phrase, pass, path, address));
}
}