Skip to content

Commit

Permalink
Added P2SH(P2WPKH) to error feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
madacol committed Oct 28, 2018
1 parent 398e3dc commit 2aa5d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btcrecover/btcrseed.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _addresses_to_hash160s(addresses):
hash160 = base58check_to_hash160(address)
version_byte = hash160[0]
if ord(version_byte) != 0 and ord(version_byte) != 5:
raise ValueError("not a Bitcoin P2PKH address; version byte is {:#04x}".format(ord(version_byte)))
raise ValueError("not a Bitcoin P2PKH or P2SH(P2WPKH) address; version byte is {:#04x}".format(ord(version_byte)))
hash160s.add(hash160)
return hash160s

Expand Down

0 comments on commit 2aa5d49

Please sign in to comment.