Skip to content

Commit

Permalink
Fix map_transaction_output_key_usage as it was not generating the p…
Browse files Browse the repository at this point in the history
…ushdata hash correctly for the P2PK case
  • Loading branch information
AustEcon authored and rt121212121 committed Mar 28, 2023
1 parent 3ff475a commit f23fafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrumsv/wallet_support/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def map_transaction_output_key_usage(transaction: Transaction,
script_template.public_keys }
elif isinstance(script_template, P2PK_Output):
script_type = ScriptType.P2PK
pushdata_hashes = { script_template.hash160() }
pushdata_hashes = { sha256(script_template.public_key.to_bytes()) }
elif isinstance(script_template, P2PKH_Address):
script_type = ScriptType.P2PKH
pushdata_hashes = { sha256(script_template.hash160()) }
Expand Down

0 comments on commit f23fafc

Please sign in to comment.