mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
signing/multisig: typo
This commit is contained in:
parent
e71b51046d
commit
da6cc4a6e5
@ -137,6 +137,7 @@ def get_p2wpkh_witness(signature: bytes, pubkey: bytes, sighash: int):
|
|||||||
return w
|
return w
|
||||||
|
|
||||||
|
|
||||||
|
# p2wsh is a generic mechanism but is currently used for multisig only
|
||||||
def get_p2wsh_witness(multisig: MultisigRedeemScriptType, signature: bytes, signature_index: int, sighash: int):
|
def get_p2wsh_witness(multisig: MultisigRedeemScriptType, signature: bytes, signature_index: int, sighash: int):
|
||||||
|
|
||||||
signatures = multisig.signatures # other signatures
|
signatures = multisig.signatures # other signatures
|
||||||
|
@ -347,7 +347,7 @@ async def sign_tx(tx: SignTx, root):
|
|||||||
|
|
||||||
signature = ecdsa_sign(key_sign, bip143_hash)
|
signature = ecdsa_sign(key_sign, bip143_hash)
|
||||||
if txi.multisig:
|
if txi.multisig:
|
||||||
# place of our signature based on the pubkey
|
# find out place of our signature based on the pubkey
|
||||||
signature_index = multisig_pubkey_index(txi_sign.multisig, key_sign_pub)
|
signature_index = multisig_pubkey_index(txi_sign.multisig, key_sign_pub)
|
||||||
witness = get_p2wsh_witness(txi.multisig, signature, signature_index, get_hash_type(coin))
|
witness = get_p2wsh_witness(txi.multisig, signature, signature_index, get_hash_type(coin))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user