#ifndef __DETERMINISTICKEYS__ #define __DETERMINISTICKEYS__ #include #include "key.h" class DetKeySet { protected: uint256 mBase; public: DetKeySet(const uint256& b) : mBase(b) { ; } DetKeySet(const std::string& phrase); ~DetKeySet() { memset(&mBase, 0, sizeof(mBase)); } bool getRandom(uint256&); CKey::pointer getPubKey(uint32 n); CKey::pointer getPrivKey(uint32 n); void getPubKeys(uint32 first, uint32 count, std::list& keys); void getPrivKeys(uint32 first, uint32 count, std::list& keys); static void unitTest(); }; #endif