public static Gen <TxOut> WitnessOutput() =>
 from m in MoneyGenerator.Money()
 from spk in ScriptGenerator.WitnessScriptPubKey()
 select new TxOut(m, spk);
Beispiel #2
0
 private static Gen <OutputDescriptor> RawOutputDescriptorGen() =>
 from addr in ScriptGenerator.RandomScriptSig()
     where addr._Script.Length > 0
 select OutputDescriptor.NewRaw(addr);
 public static Gen <TxIn> WitnessInput() =>
 from txin in LegacyTransactionGenerators.Input()
 from witscript in ScriptGenerator.RandomWitScript()
 select AttachWitScript(txin, witscript);