MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / BIP341_sha_outputs

Function BIP341_sha_outputs

test/functional/test_framework/script.py:814–815  ·  view source on GitHub ↗
(txTo)

Source from the content-addressed store, hash-verified

812 return sha256(b"".join(i.nSequence.to_bytes(4, "little") for i in txTo.vin))
813
814def BIP341_sha_outputs(txTo):
815 return sha256(b"".join(o.serialize() for o in txTo.vout))
816
817def 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))

Callers 2

gen_test_vectorsMethod · 0.90
TaprootSignatureMsgFunction · 0.85

Calls 3

sha256Function · 0.85
joinMethod · 0.80
serializeMethod · 0.45

Tested by

no test coverage detected