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

Function BIP341_sha_sequences

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

Source from the content-addressed store, hash-verified

809 return sha256(b"".join(ser_string(u.scriptPubKey) for u in spent_utxos))
810
811def BIP341_sha_sequences(txTo):
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))

Callers 2

gen_test_vectorsMethod · 0.90
TaprootSignatureMsgFunction · 0.85

Calls 3

sha256Function · 0.85
joinMethod · 0.80
to_bytesMethod · 0.80

Tested by

no test coverage detected