mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-17 13:37:01 +00:00
* add keystore decrypt functionality * add flow types * add KeystoreWallet class * only support keystore as string
10 lines
274 B
JavaScript
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));
|
|
}
|
|
}
|