Comments
authorCryptoManiac <balthazar@yandex.ru>
Sun, 23 Aug 2015 22:14:52 +0000 (01:14 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Sun, 23 Aug 2015 22:14:52 +0000 (01:14 +0300)
Novacoin/CBlockHeader.cs
Novacoin/CScript.cs
Novacoin/RIPEMD160.cs
Novacoin/SHA1.cs
Novacoin/ScriptCode.cs
Novacoin/ScryptHash256.cs
Novacoin/VarInt.cs

index 167e32e..129be06 100644 (file)
  */
 
 using System;
-using System.Linq;
 using System.Text;
 using System.Collections.Generic;
 
 namespace Novacoin
 {
-       /// <summary>
-       /// Block header
-       /// </summary>
-       public class CBlockHeader
+    /// <summary>
+    /// Block header
+    /// </summary>
+    public class CBlockHeader
        {
                /// <summary>
                /// Version of block schema.
index 405a4b3..1bd4ede 100644 (file)
@@ -197,15 +197,15 @@ namespace Novacoin
             {
                 var wCodeBytes = new ByteQueue(codeBytes);
 
-                instruction opcode; // Current opcode
+                instruction opcode; // Current instruction
                 byte[] pushArgs; // OP_PUSHDATAn argument
 
-                // Scan opcodes sequence
+                // Scan instructions sequence
                 while (ScriptCode.GetOp(ref wCodeBytes, out opcode, out pushArgs))
                 {
                     if (opcode > instruction.OP_16)
                     {
-                        // We don't allow control opcodes here
+                        // We don't allow control instructions here
                         return false;
                     }
                 }
@@ -224,9 +224,9 @@ namespace Novacoin
                 var wCodeBytes = new ByteQueue(codeBytes);
 
                 byte[] pushArgs; // OP_PUSHDATAn argument
-                instruction opcode; // Current opcode
+                instruction opcode; // Current instruction
 
-                // Scan opcodes sequence
+                // Scan instructions sequence
                 while (ScriptCode.GetOp(ref wCodeBytes, out opcode, out pushArgs))
                 {
                     var data = pushArgs;
@@ -312,13 +312,13 @@ namespace Novacoin
         {
             var wCodeBytes = new ByteQueue(codeBytes);
 
-            instruction opcode; // Current opcode
+            instruction opcode; // Current instruction
             byte[] pushArgs; // OP_PUSHDATAn argument
 
             int nCount = 0;
             var lastOpcode = instruction.OP_INVALIDOPCODE;
 
-            // Scan opcodes sequence
+            // Scan instructions sequence
             while (ScriptCode.GetOp(ref wCodeBytes, out opcode, out pushArgs))
             {
                 if (opcode == instruction.OP_CHECKSIG || opcode == instruction.OP_CHECKSIGVERIFY)
@@ -359,7 +359,7 @@ namespace Novacoin
             // pushes onto the stack:
             ByteQueue wScriptSig = scriptSig.GetByteQUeue();
 
-            instruction opcode; // Current opcode
+            instruction opcode; // Current instruction
             byte[] pushArgs; // OP_PUSHDATAn argument
 
             while (ScriptCode.GetOp(ref wScriptSig, out opcode, out pushArgs))
@@ -463,7 +463,7 @@ namespace Novacoin
                        var sb = new StringBuilder();
             var wCodeBytes = new ByteQueue(codeBytes);
 
-            instruction opcode; // Current opcode
+            instruction opcode; // Current instruction
             byte[] pushArgs; // OP_PUSHDATAn argument
             while (ScriptCode.GetOp(ref wCodeBytes, out opcode, out pushArgs))
             {
index 84ce67f..9d2c55f 100644 (file)
@@ -1,22 +1,22 @@
 \feff/**
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *  Novacoin classes library
+ *  Copyright (C) 2015 Alex D. (balthazar.ad@gmail.com)
+
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU Affero General Public License as
+ *  published by the Free Software Foundation, either version 3 of the
+ *  License, or (at your option) any later version.
+
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Affero General Public License for more details.
+
+ *  You should have received a copy of the GNU Affero General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 using Org.BouncyCastle.Crypto.Digests;
-using System.Collections.Generic;
-using System.Linq;
 
 namespace Novacoin
 {
index 7ef1755..b7da1ad 100644 (file)
@@ -1,17 +1,19 @@
 \feff/**
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *  Novacoin classes library
+ *  Copyright (C) 2015 Alex D. (balthazar.ad@gmail.com)
+
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU Affero General Public License as
+ *  published by the Free Software Foundation, either version 3 of the
+ *  License, or (at your option) any later version.
+
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Affero General Public License for more details.
+
+ *  You should have received a copy of the GNU Affero General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 
index eaafed1..4f86d73 100644 (file)
@@ -1,17 +1,19 @@
 /**
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *  Novacoin classes library
+ *  Copyright (C) 2015 Alex D. (balthazar.ad@gmail.com)
+
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU Affero General Public License as
+ *  published by the Free Software Foundation, either version 3 of the
+ *  License, or (at your option) any later version.
+
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Affero General Public License for more details.
+
+ *  You should have received a copy of the GNU Affero General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 using System;
index 96b017f..4f95926 100644 (file)
@@ -1,22 +1,22 @@
 \feff/**
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *  Novacoin classes library
+ *  Copyright (C) 2015 Alex D. (balthazar.ad@gmail.com)
+
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU Affero General Public License as
+ *  published by the Free Software Foundation, either version 3 of the
+ *  License, or (at your option) any later version.
+
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Affero General Public License for more details.
+
+ *  You should have received a copy of the GNU Affero General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 using System;
-using System.Collections.Generic;
-//using System.Linq;
 
 namespace Novacoin
 {
index 4ebab9d..d376cae 100644 (file)
@@ -18,7 +18,6 @@
 
 using System;
 using System.Collections.Generic;
-using System.Linq;
 
 namespace Novacoin
 {