We don't need this
authorCryptoManiac <balthazar@yandex.ru>
Tue, 18 Aug 2015 18:20:37 +0000 (21:20 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Tue, 18 Aug 2015 18:20:37 +0000 (21:20 +0300)
Novacoin/CNovacoinAddress.cs

index 5ff3d28..3f9c0d9 100644 (file)
@@ -37,14 +37,6 @@ namespace Novacoin
             addrData = new List<byte>(scriptID.hashBytes);
         }
 
-        public static byte[] ConcatAddress(byte[] RipeHash, byte[] Checksum)
-        {
-            byte[] ret = new byte[RipeHash.Length + 4];
-            Array.Copy(RipeHash, ret, RipeHash.Length);
-            Array.Copy(Checksum, 0, ret, RipeHash.Length, 4);
-            return ret;
-        }
-
         public bool IsValid()
         {
             int nExpectedSize = 20;
@@ -79,7 +71,7 @@ namespace Novacoin
 
             r.Add(nVersion);
             r.AddRange(addrData);
-            r.AddRange(checkSum);
+            r.AddRange(checkSum); // First four bytes of SHA256 hash
 
             return AddressTools.Base58Encode(r.ToArray());
         }