MyCrypto/common/libs/wallet/encprivkey.ts

9 lines
264 B
TypeScript

import { decryptPrivKey } from 'libs/decrypt';
import PrivKeyWallet from './privkey';
export default class EncryptedPrivKeyWallet extends PrivKeyWallet {
constructor(encprivkey: string, password: string) {
super(decryptPrivKey(encprivkey, password));
}
}