We need to be able to call ScriptForOutput in external code, so we export it.
This allows external signers to properly sign NP2WKH inputs. Co-authored-by: Oliver Gugger <gugger@gmail.com>