tcareful with exceptions.. - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 99647fc070ad1aa988c3fc5fa16476a71564fd3f
DIR parent 2c6cf7f80cda5ee78fa1b8d670ae53de169b99f9
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Sat, 10 Mar 2018 08:16:19 +0100
careful with exceptions..
Diffstat:
M lib/bitcoin.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/lib/bitcoin.py b/lib/bitcoin.py
t@@ -481,7 +481,8 @@ def deserialize_privkey(key):
assert txin_type in SCRIPT_TYPES
vch = DecodeBase58Check(key)
if not vch:
- raise BaseException("cannot deserialize", key)
+ neutered_privkey = str(key)[:3] + '..' + str(key)[-2:]
+ raise BaseException("cannot deserialize", neutered_privkey)
if txin_type is None:
# keys exported in version 3.0.x encoded script type in first byte