Rework addresses.

This commit is contained in:
Arthur Britto
2012-03-17 20:19:09 -07:00
parent 6e8421dd99
commit 73ff9b95ad
33 changed files with 1287 additions and 708 deletions

View File

@@ -5,20 +5,20 @@
#include <boost/thread/mutex.hpp>
#include "uint256.h"
#include "NewcoinAddress.h"
#include "key.h"
class PubKeyCache
{
private:
boost::mutex mLock;
std::map<uint160, CKey::pointer> mCache;
std::map<NewcoinAddress, CKey::pointer> mCache;
public:
PubKeyCache() { ; }
CKey::pointer locate(const uint160& id);
CKey::pointer store(const uint160& id, CKey::pointer key);
CKey::pointer locate(const NewcoinAddress& id);
CKey::pointer store(const NewcoinAddress& id, CKey::pointer key);
void clear();
};