(txTo)
| 812 | return sha256(b"".join(i.nSequence.to_bytes(4, "little") for i in txTo.vin)) |
| 813 | |
| 814 | def BIP341_sha_outputs(txTo): |
| 815 | return sha256(b"".join(o.serialize() for o in txTo.vout)) |
| 816 | |
| 817 | def TaprootSignatureMsg(txTo, spent_utxos, hash_type, input_index=0, *, scriptpath=False, leaf_script=None, codeseparator_pos=-1, annex=None, leaf_ver=LEAF_VERSION_TAPSCRIPT): |
| 818 | assert_equal(len(txTo.vin), len(spent_utxos)) |
no test coverage detected