Closed mmontin closed 2 months ago
The feature is really nice and I see that now there is an option to disable it if we need manual control over. What do we need before it is ready for review?
Does this PR target main directly or is it based on other previous unmerged work?
This PR will close #447 but allowing to implicit search for correct reference scripts in known utxos. In the process, this will also close #438.
In practice, this means that putting any script on utxos will be sufficient for cooked to find those scripts and use them as reference whenever required. In particular, putting reference scripts in the initial distribution will be even more useful.
A drawback of this approach is that there will be no visual difference between redeeming something with of without a reference script. To compensate, a new log entry is generated whenever cooked assigns a reference script by itself.
This automated addition of reference scripts can be turned off and it will still be possible to manually provide a reference input with a script attached when redeeming a script.
This is rebase on #450