From 1edac525d07f68f781fea5d5fcc91c548623d912 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sun, 23 Aug 2015 07:26:03 +0300 Subject: [PATCH] Comments --- Novacoin/Hash.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Novacoin/Hash.cs b/Novacoin/Hash.cs index 0089f38..990ec7b 100644 --- a/Novacoin/Hash.cs +++ b/Novacoin/Hash.cs @@ -57,7 +57,7 @@ namespace Novacoin } /// - /// Initializes a new instance of Hash class with first 20 bytes from supplied list + /// Initializes a new instance of Hash class /// /// List of bytes public Hash(IEnumerable bytes, int skip = 0) @@ -65,12 +65,20 @@ namespace Novacoin _hashBytes = bytes.Skip(skip).Take(hashSize).ToArray(); } + /// + /// Initializes a new instance of Hash class + /// + /// Array of bytes public Hash(byte[] bytes, int offset = 0) { _hashBytes = new byte[hashSize]; Array.Copy(bytes, offset, _hashBytes, 0, hashSize); } + /// + /// Initializes a new instance of Hash class as a copy of another one + /// + /// Instance of hash class public Hash(Hash h) { _hashBytes = new byte[h.hashSize]; -- 1.7.1