Plutonomicon / cardano-transaction-lib

A Purescript library for building smart contract transactions on Cardano
https://plutonomicon.github.io/cardano-transaction-lib/
MIT License
91 stars 52 forks source link

`InputWithScriptRef` should not require full scripts #1600

Open errfrom opened 5 months ago

errfrom commented 5 months ago

Currently, both RefInput and SpendInput data constructors of InputWithScriptRef require TransactionOutputWithRefScript, but the contained script is not used for constraint processing and transaction building, and only the Language of the script is used for script integrity hash calculation.

Suggestion: Revise the current interface to allow users to specify a language of the reference script without providing the full script.