#ifndef _HP_USR_INPUT_NONCE_MAP_ #define _HP_USR_INPUT_NONCE_MAP_ #include "../pchheader.hpp" namespace usr { class input_nonce_map { private: // Keeps short-lived nonces and signatures with their absolute expiration time. std::unordered_map> nonce_map; void cleanup(); public: int check(const std::string &pubkey, const std::string &nonce, const std::string &sig, const uint64_t &max_lcl_seqno, const bool no_add = false); }; } // namespace usr #endif