Block and transaction verifications
[NovacoinLibrary.git] / Novacoin / Interop.cs
index 49481c9..f4c1e2e 100644 (file)
@@ -22,23 +22,6 @@ using System.Text;
 
 namespace Novacoin
 {
-    public class InteropException : Exception
-    {
-        public InteropException()
-        {
-        }
-
-        public InteropException(string message)
-            : base(message)
-        {
-        }
-
-        public InteropException(string message, Exception inner)
-            : base(message, inner)
-        {
-        }
-    }
-
     /// <summary>
     /// Miscellaneous functions
     /// </summary>
@@ -73,7 +56,7 @@ namespace Novacoin
             return bytes;
         }
 
-        public static string ToHex(IEnumerable<byte> bytes)
+        public static string ToHex(byte[] bytes)
         {
             var sb = new StringBuilder();
             foreach (var b in bytes)
@@ -83,9 +66,9 @@ namespace Novacoin
             return sb.ToString();
         }
 
-        public static int GetTime()
+        public static uint GetTime()
         {
-            return (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
+            return (uint)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
         }
     }
 }