tfix issue #1713 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 43b770fbf5520efde53413765456d6e7bc5c633d DIR parent a57274930b16b566caf74b671eee61434bd044f3 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 10 Mar 2016 15:06:03 +0100 fix issue #1713 Diffstat: M lib/pem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/pem.py b/lib/pem.py t@@ -30,7 +30,7 @@ import binascii -from x509 import ASN1_Node +from x509 import ASN1_Node, bytestr_to_int, decode_OID def a2b_base64(s): t@@ -173,6 +173,7 @@ def bytesToNumber(s): def _parseASN1PrivateKey(s): + s = ASN1_Node(s) root = s.root() version_node = s.first_child(root) version = bytestr_to_int(s.get_value_of_type(version_node, 'INTEGER'))