Esempio n. 1
0
 public TaprootReadyPrecomputedTransactionData(Transaction tx, TxOut[] spentOutputs) : base(tx)
 {
     SpentOutputs       = spentOutputs;
     HashOutputsSingle  = tx.GetHashOutputs(HashVersion.Taproot);
     HashSequenceSingle = tx.GetHashSequence(HashVersion.Taproot);
     HashPrevoutsSingle = tx.GetHashPrevouts(HashVersion.Taproot);
     HashAmountsSingle  = tx.GetHashAmounts(HashVersion.Taproot, spentOutputs);
     HashScriptsSingle  = tx.GetHashScripts(HashVersion.Taproot, spentOutputs);
 }
Esempio n. 2
0
 public PrecomputedTransactionData(Transaction tx)
 {
     if (tx == null)
     {
         throw new ArgumentNullException(nameof(tx));
     }
     HashOutputs  = tx.GetHashOutputs(HashVersion.WitnessV0);
     HashSequence = tx.GetHashSequence(HashVersion.WitnessV0);
     HashPrevouts = tx.GetHashPrevouts(HashVersion.WitnessV0);
 }