Skip to content

Commit

Permalink
Remove a to_bytes method in keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mccwdev committed Feb 17, 2024
1 parent 20fdf08 commit dd843dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoinlib/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ def verify(self, txid=None, public_key=None):
str(secp256k1_Gy)
)
else:
transaction_to_sign = to_bytes(self.txid)
transaction_to_sign = bytes.fromhex(self.txid)
signature = self.bytes()
if len(transaction_to_sign) != 32:
transaction_to_sign = double_sha256(transaction_to_sign)
Expand Down

0 comments on commit dd843dc

Please sign in to comment.