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.
Currently, both
RefInput
andSpendInput
data constructors ofInputWithScriptRef
requireTransactionOutputWithRefScript
, but the contained script is not used for constraint processing and transaction building, and only theLanguage
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.