pub fn hash_script_data(
redeemers: &Redeemers,
cost_models: &CostModels,
datums: Option<PlutusDataList>,
) -> ScriptDataHashExpand description
Calculates the hash for script data (no plutus scripts) if it is necessary. Returns None if it was not necessary (no datums/redeemers) to include.
Most users will not directly need this as when using the builders it will be invoked for you.
Note: This WASM binding does not work with non-standard witness set encodings. If you created the witness set manually this is not an issue but for constructing it from deserializing a transaction/witness then please use calc_script_data_hash_from_witness()