mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 03:54:13 +00:00
f42837de68
* wire up keystore decrypt & build UI * add support for encrypted private keys * add check for key length * rename keystore wallet file * rename encrypted priv key wallet file * add support for presale, v1, & v2 JSON keystores * clean up TODO messages, add class files * add v3 references * add flow type * fix event bug * update privkey validators to accept whole privkey * refactor pkey/pass validation to function * move pass req detection to function, remove unnecessary state * add tests for decrypt & keystore libs
10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
// @flow
|
|
import PrivKeyWallet from './privkey';
|
|
import { decryptUtcKeystoreToPkey } from 'libs/keystore';
|
|
|
|
export default class UtcWallet extends PrivKeyWallet {
|
|
constructor(keystore: string, password: string) {
|
|
super(decryptUtcKeystoreToPkey(keystore, password));
|
|
}
|
|
}
|