MCPcopy Create free account
hub / github.com/ElementsProject/elements / BIP341_sha_sequences

Function BIP341_sha_sequences

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

Source from the content-addressed store, hash-verified

923 return sha256(b"".join(ser_string(u.scriptPubKey) for u in spent_utxos))
924
925def BIP341_sha_sequences(txTo):
926 return sha256(b"".join(struct.pack("<I", i.nSequence) for i in txTo.vin))
927
928def BIP341_sha_outputs(txTo):
929 return sha256(b"".join(o.serialize() for o in txTo.vout))

Callers 2

gen_test_vectorsMethod · 0.90
TaprootSignatureMsgFunction · 0.85

Calls 2

sha256Function · 0.70
joinMethod · 0.45

Tested by

no test coverage detected