public static Gen <TxOut> WitnessOutput() => from m in MoneyGenerator.Money() from spk in ScriptGenerator.WitnessScriptPubKey() select new TxOut(m, spk);
public static Gen <TxIn> WitnessInput() => from txin in LegacyTransactionGenerators.Input() from witscript in ScriptGenerator.RandomWitScript() select AttachWitScript(txin, witscript);