MyCrypto/common/libs/wallet/keystore.js
skubakdj 30f2d854d6 KeystoreWallet Class & Decrypt (#111)
* add keystore decrypt functionality

* add flow types

* add KeystoreWallet class

* only support keystore as string
2017-08-09 07:04:32 -05:00

10 lines
274 B
JavaScript

// @flow
import PrivKeyWallet from './privkey';
import { fromV3KeystoreToPkey } from 'libs/keystore';
export default class KeystoreWallet extends PrivKeyWallet {
constructor(keystore: string, password: string) {
super(fromV3KeystoreToPkey(keystore, password));
}
}