Electroneum
difficulty.h File Reference
#include <cstdint>
#include <vector>
#include <string>
#include <boost/multiprecision/cpp_int.hpp>
#include "crypto/hash.h"
Include dependency graph for difficulty.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cryptonote
 Holds cryptonote related classes and helpers.
 

Typedefs

typedef boost::multiprecision::uint128_t cryptonote::difficulty_type
 

Functions

bool cryptonote::check_hash_64 (const crypto::hash &hash, uint64_t difficulty)
 checks if a hash fits the given difficulty More...
 
uint64_t cryptonote::next_difficulty_64 (std::vector< std::uint64_t > timestamps, std::vector< uint64_t > cumulative_difficulties, size_t target_seconds, uint8_t version)
 
bool cryptonote::check_hash_128 (const crypto::hash &hash, difficulty_type difficulty)
 
bool cryptonote::check_hash (const crypto::hash &hash, difficulty_type difficulty)
 
difficulty_type cryptonote::next_difficulty (std::vector< std::uint64_t > timestamps, std::vector< difficulty_type > cumulative_difficulties, size_t target_seconds, uint8_t version=1)
 
std::string cryptonote::hex (difficulty_type v)