From 66d89de5845265e7ff9af014897d6c9789dd11b0 Mon Sep 17 00:00:00 2001 From: Mikhail Melnik Date: Thu, 14 Sep 2017 15:54:21 +0300 Subject: [PATCH] use correct key field in HDPrivateKey.__int__ --- two1/bitcoin/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/two1/bitcoin/crypto.py b/two1/bitcoin/crypto.py index 215e1f50..e03cd253 100644 --- a/two1/bitcoin/crypto.py +++ b/two1/bitcoin/crypto.py @@ -1476,7 +1476,7 @@ def identifier(self): return self.public_key.hash160() def __int__(self): - return int(self.key) + return int(self._key) class HDPublicKey(HDKey, PublicKeyBase):