X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=Novacoin%2FHash.cs;h=b9e6d0cca22bde837197319a9cf6a9bf5cf7b389;hb=5f1c284906c75b1c579357db468239d47c5b8707;hp=3d757f13139d96d0be011561890f381de0f5b7c0;hpb=2d8a4c9b2b8b952272a22546154fabb53078bda6;p=NovacoinLibrary.git
diff --git a/Novacoin/Hash.cs b/Novacoin/Hash.cs
index 3d757f1..b9e6d0c 100644
--- a/Novacoin/Hash.cs
+++ b/Novacoin/Hash.cs
@@ -17,22 +17,13 @@
*/
using System;
-using System.Security.Cryptography;
-using System.Collections.Generic;
using System.Linq;
-using System.Numerics;
-
namespace Novacoin
{
public abstract class Hash
{
///
- /// Computes the SHA256 hash for the input data using the managed library.
- ///
- protected static SHA256Managed _hasher256 = new SHA256Managed();
-
- ///
/// Array of digest bytes.
///
protected byte[] _hashBytes = null;
@@ -61,15 +52,6 @@ namespace Novacoin
///
/// Initializes a new instance of Hash class
///
- /// List of bytes
- public Hash(IEnumerable bytes, int skip = 0)
- {
- _hashBytes = bytes.Skip(skip).Take(hashSize).ToArray();
- }
-
- ///
- /// Initializes a new instance of Hash class
- ///
/// Array of bytes
public Hash(byte[] bytes, int offset = 0)
{