Bitcoin: How to determine the input stack format for a Miniscript script? – iclass academy