mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 18:45:38 +00:00
da93fb1684
* Add repo wide prettier command to prepush * Make config file explict, remove formatAll to prepush
7 lines
334 B
TypeScript
7 lines
334 B
TypeScript
import { decryptMnemonicToPrivKey } from 'libs/decrypt';
|
|
import { fromPrivateKey } from 'ethereumjs-wallet';
|
|
import { signWrapper } from 'libs/wallet';
|
|
|
|
export const MnemonicWallet = (phrase: string, pass: string, path: string, address: string) =>
|
|
signWrapper(fromPrivateKey(decryptMnemonicToPrivKey(phrase, pass, path, address)));
|