Skip to content

Commit

Permalink
Fix wrong p2pk input address
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Apr 15, 2024
1 parent 48aabd8 commit c6271c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoinlib/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def update_scripts(self, hash_type=SIGHASH_ALL):
if self.keys:
self.script_code = varstr(self.keys[0].public_byte) + b'\xac'
self.unlocking_script_unsigned = self.script_code
addr_data = self.keys[0].public_byte
addr_data = hash160(self.keys[0].public_byte)
if self.signatures and not self.unlocking_script:
self.unlocking_script = varstr(self.signatures[0].as_der_encoded())
elif self.script_type == 'p2tr': # segwit_v1
Expand Down

0 comments on commit c6271c0

Please sign in to comment.