using System.Collections.Generic;
using System.Linq;
+using System.Numerics;
+
namespace Novacoin
{
public abstract class Hash
/// </summary>
public Hash()
{
- _hashBytes = Enumerable.Repeat<byte>(0, hashSize).ToArray();
+ _hashBytes = new byte[hashSize];
}
/// <summary>
get { return !_hashBytes.Any(b => b != 0); }
}
+ /*public static implicit operator BigInteger(Hash h)
+ {
+ return new BigInteger(h._hashBytes);
+ }*/
+
public override string ToString()
{
return Interop.ToHex(Interop.ReverseBytes(_hashBytes));