1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

signing/multisig: typo

This commit is contained in:
Tomas Susanka 2018-02-13 12:50:13 +01:00 committed by Jan Pochyla
parent e71b51046d
commit da6cc4a6e5
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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: