Ejemplo n.º 1
0
 public IBitcoinWriter AddTo(IBitcoinWriter writer)
 {
     writer
     .Add(_prevOutPoint)
     .Add(_scriptSig)
     .Add(_sequence);
     return(writer);
 }
Ejemplo n.º 2
0
 public IBitcoinWriter AddTo(IBitcoinWriter writer, bool withoutCodeSeparators = false)
 {
     if (withoutCodeSeparators)
     {
         var ops = Decode().Where(o => o.Code != Opcode.OP_CODESEPARATOR).ToArray();
         writer.Add(ops.Length.AsVarIntBytes());
         foreach (var op in ops)
         {
             writer.Add(op);
         }
     }
     else
     {
         writer
         .Add(_script.Length.AsVarIntBytes())
         .Add(_script);
     }
     return(writer);
 }
Ejemplo n.º 3
0
 public IBitcoinWriter AddTo(IBitcoinWriter writer)
 {
     writer.Add(TxId).Add(Index);
     return(writer);
 }