Esempio n. 1
0
 public static void EncodeUnmintedTx(BinaryWriter writer, UnmintedTx unmintedTx)
 {
     writer.WriteUInt256(unmintedTx.TxHash);
     EncodePrevTxOutputList(writer, unmintedTx.PrevTxOutputs);
 }
Esempio n. 2
0
 public static byte[] EncodeUnmintedTx(UnmintedTx unmintedTx)
 {
     using (var stream = new MemoryStream())
     using (var writer = new BinaryWriter(stream))
     {
         EncodeUnmintedTx(writer, unmintedTx);
         return stream.ToArray();
     }
 }
Esempio n. 3
0
 public static void EncodeUnmintedTx(BinaryWriter writer, UnmintedTx unmintedTx)
 {
     writer.WriteUInt256(unmintedTx.TxHash);
     writer.WriteList(unmintedTx.PrevOutputTxKeys, x => EncodeTxLookupKey(writer, x));
 }