operator/ for uint160 and uint256
[NovacoinLibrary.git] / Novacoin / CPubKey.cs
index 543a261..33d1b92 100644 (file)
@@ -52,7 +52,7 @@ namespace Novacoin
         /// <param name="strBase58"></param>
         public CPubKey(string strBase58)
         {
-            var pQ = curve.Curve.DecodePoint(AddressTools.Base58DecodeCheck(strBase58).ToArray());
+            var pQ = curve.Curve.DecodePoint(AddressTools.Base58DecodeCheck(strBase58));
             _Public = new ECPublicKeyParameters(pQ, domain);
         }
 
@@ -67,7 +67,7 @@ namespace Novacoin
 
         public string ToHex()
         {
-            return Interop.ToHex((byte[])this);
+            return Interop.ToHex(this);
         }
 
         /// <summary>