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