Skip to content

Commit

Permalink
Fix decoding of memos for password model accounts, close #127
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed May 10, 2017
1 parent 622d1d3 commit 0eb9cc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/app/stores/WalletDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ class WalletDb extends BaseStore {

decryptTcomb_PrivateKey(private_key_tcomb) {
if( ! private_key_tcomb) return null
if( ! aes_private) throw new Error("wallet locked")
if( this.isLocked() ) throw new Error("wallet locked")
if ( !!_passwordKey[private_key_tcomb.pubkey]) {
return _passwordKey[private_key_tcomb.pubkey];
}
let private_key_hex = aes_private.decryptHex(private_key_tcomb.encrypted_key)
return PrivateKey.fromBuffer(new Buffer(private_key_hex, 'hex'))
}
Expand Down

0 comments on commit 0eb9cc5

Please sign in to comment.