(spent_utxos)
| 917 | return sha256(b"".join(i.prevout.serialize() for i in txTo.vin)) |
| 918 | |
| 919 | def BIP341_sha_amounts(spent_utxos): |
| 920 | return sha256(b"".join(u.nAsset.serialize() + u.nValue.serialize() for u in spent_utxos)) |
| 921 | |
| 922 | def BIP341_sha_scriptpubkeys(spent_utxos): |
| 923 | return sha256(b"".join(ser_string(u.scriptPubKey) for u in spent_utxos)) |
no test coverage detected