(spent_utxos)
| 806 | return sha256(b"".join(u.nValue.to_bytes(8, "little", signed=True) for u in spent_utxos)) |
| 807 | |
| 808 | def BIP341_sha_scriptpubkeys(spent_utxos): |
| 809 | return sha256(b"".join(ser_string(u.scriptPubKey) for u in spent_utxos)) |
| 810 | |
| 811 | def BIP341_sha_sequences(txTo): |
| 812 | return sha256(b"".join(i.nSequence.to_bytes(4, "little") for i in txTo.vin)) |
no test coverage detected