Init some fields, add ToString() for Hash160 and Hash256, start implementation of...
[NovacoinLibrary.git] / Novacoin / CTxOut.cs
1 \feffusing System;
2 using System.Text;
3
4 namespace Novacoin
5 {
6         /// <summary>
7         /// Transaction output.
8         /// </summary>
9         public class CTxOut
10         {
11                 /// <summary>
12                 /// Input value.
13                 /// </summary>
14                 public ulong nValue = 0;
15
16                 /// <summary>
17                 /// Second half of script which contains spending instructions.
18                 /// </summary>
19                 public byte[] scriptPubKey;
20
21                 public CTxOut ()
22                 {
23                 }
24
25                 public override string ToString ()
26                 {
27                         StringBuilder sb = new StringBuilder ();
28                         sb.AppendFormat ("CTxOut(nValue={0},scriptPubKey={1}", nValue, scriptPubKey.ToString());
29
30                         return sb.ToString ();
31                 }
32         }
33 }
34