mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-24 01:49:06 +00:00
14 lines
352 B
TypeScript
14 lines
352 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))
|
||
|
);
|