Add ArgumentException for incorrect private key
[NovacoinLibrary.git] / Novacoin / CKeyPool.cs
1 \feffusing System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6
7 namespace Novacoin
8 {
9     public class CKeyPool
10     {
11         public CKeyPool(int nSize = 100)
12         {
13             // TODO
14         }
15
16         public CKeyID ReserveKey(out int nKeyIndex)
17         {
18             // TODO
19
20             nKeyIndex = -1;
21
22             return (new CKeyPair()).KeyID;
23         }
24
25         public void RemoveKey(int nIndex)
26         {
27             // TODO
28         }
29
30         public void ReturnKey(int nIndex)
31         {
32             // TODO
33         }
34
35         public void ResetPool()
36         {
37             // TODO
38         }
39
40         public long OldestTime
41         {
42             get {
43                 // TODO
44                 return 0;
45             }
46         }
47     }
48 }