Add CKeyStore stub
authorCryptoManiac <balthazar@yandex.ru>
Mon, 24 Aug 2015 23:18:24 +0000 (02:18 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Mon, 24 Aug 2015 23:18:24 +0000 (02:18 +0300)
Novacoin/CKeyStore.cs [new file with mode: 0644]
Novacoin/Novacoin.csproj

diff --git a/Novacoin/CKeyStore.cs b/Novacoin/CKeyStore.cs
new file mode 100644 (file)
index 0000000..59c3fbd
--- /dev/null
@@ -0,0 +1,65 @@
+\feffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Novacoin
+{
+    public class CKeyStore
+    {
+        public CKeyStore(string strDatabasePath="Wallet.db")
+        {
+        }
+
+        ~CKeyStore()
+        {
+        }
+
+        public bool AddKey(CKeyPair keyPair)
+        {
+            // TODO
+
+            return true;
+        }
+
+        public bool HaveKey(CKeyID keyID)
+        {
+            // TODO
+
+            return true;
+        }
+
+        public bool GetKey(CKeyID keyID, out CKeyPair keyPair)
+        {
+            keyPair = new CKeyPair();
+
+            return false;
+        }
+
+        public bool AddScript(CScript script)
+        {
+            // TODO
+
+            return true;
+        }
+
+        public bool HaveScript(CScriptID scriptID)
+        {
+            // TODO
+
+            return true;
+        }
+
+        public bool GetScript(CScriptID scriptID, out CScript script)
+        {
+            // TODO
+
+            script = new CScript();
+
+            return true;
+        }
+
+
+    }
+}
index b8a93a9..0f18a22 100644 (file)
@@ -18,7 +18,6 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
-    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>full</DebugType>
     <ConsolePause>false</ConsolePause>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="BouncyCastle.Crypto, Version=1.7.4137.9688, Culture=neutral, PublicKeyToken=a4292a325f69b123, processorArchitecture=MSIL">
-      <HintPath>..\packages\BouncyCastle.1.7.0\lib\Net40-Client\BouncyCastle.Crypto.dll</HintPath>
-      <Private>True</Private>
-    </Reference>
     <Reference Include="System" />
     <Reference Include="System.Numerics" />
+    <Reference Include="BouncyCastle.Crypto, Version=1.7.4137.9688, Culture=neutral, PublicKeyToken=a4292a325f69b123">
+      <HintPath>..\packages\BouncyCastle.1.7.0\lib\Net40-Client\BouncyCastle.Crypto.dll</HintPath>
+    </Reference>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="AddressTools.cs" />
@@ -65,6 +63,7 @@
     <Compile Include="CBlock.cs" />
     <Compile Include="CScript.cs" />
     <Compile Include="ScriptCode.cs" />
+    <Compile Include="CKeyStore.cs" />
   </ItemGroup>
   <ItemGroup>
     <None Include="packages.config" />