Import wallet fix (#1820)

* fixed importing presale wallet with encseed longer than 96 bytes

* fixed incorrect pkcs unpadding in decrypting presale wallet
This commit is contained in:
Marek Kotewicz
2016-08-03 15:24:09 +02:00
committed by Gav Wood
parent 9fb5623569
commit 6ba1e66d32
3 changed files with 14 additions and 11 deletions

View File

@@ -138,7 +138,7 @@ fn execute<S, I>(command: I) -> Result<String, Error> where I: IntoIterator<Item
let ok = store.change_password(&address, &old_pwd, &new_pwd).is_ok();
Ok(format!("{}", ok))
} else if args.cmd_list {
let accounts = store.accounts();
let accounts = try!(store.accounts());
Ok(format_accounts(&accounts))
} else if args.cmd_import {
let src = try!(key_dir(&args.flag_src));