Beispiel #1
0
 public Transaction(List <TxDeclaration> declarations, List <TxInput> inputs, List <TxOutput> outputs, TransactionMessage message, long expire, TxInput fees = null)
 {
     Expire       = expire;
     Fees         = fees;
     Declarations = declarations;
     Inputs       = inputs;
     Outputs      = outputs;
     Message      = message;
 }
Beispiel #2
0
 public static bool IsEmpty(this TransactionMessage transaction)
 {
     return(transaction == null);
 }
Beispiel #3
0
 public static long ToLong(TransactionMessage message)
 {
     return(BitConverter.ToInt64(message.GetBytes(), 0));
 }
Beispiel #4
0
 public static double ToDouble(TransactionMessage message)
 {
     return(BitConverter.ToDouble(message.GetBytes(), 0));
 }
Beispiel #5
0
 public static string ToString(TransactionMessage message)
 {
     return(Encoding.ASCII.GetString(message.GetBytes()));
 }