Skip to content

Commit

Permalink
[account] allow utf8 passwordkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Jun 14, 2016
1 parent 24fba9b commit 80fa0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphenebase/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_private(self) :
"""
a = bytes(self.account +
self.role +
self.password, 'ascii')
self.password, 'utf8')
s = hashlib.sha256(a).digest()
return PrivateKey(hexlify(s).decode('ascii'))

Expand Down

0 comments on commit 80fa0f2

Please sign in to comment.