(spent_utxos)
| 803 | return sha256(b"".join(i.prevout.serialize() for i in txTo.vin)) |
| 804 | |
| 805 | def BIP341_sha_amounts(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)) |
no test coverage detected