bitmessage-js/src/pow.h

14 lines
328 B
C
Raw Normal View History

2015-01-14 22:07:03 +00:00
#ifndef BITCHAN_BITMESSAGE_POW_H_
#define BITCHAN_BITMESSAGE_POW_H_
2015-01-09 21:36:42 +00:00
2015-01-15 17:13:02 +00:00
static const size_t MAX_POOL_SIZE = 1024;
static const size_t HASH_SIZE = 64;
2015-01-11 02:59:32 +00:00
2015-01-09 22:09:01 +00:00
int pow(size_t pool_size,
uint64_t target,
2015-01-09 21:36:42 +00:00
const uint8_t* initial_hash,
2015-01-09 22:09:01 +00:00
uint64_t max_nonce,
uint64_t* nonce);
2015-01-09 21:36:42 +00:00
2015-01-14 22:07:03 +00:00
#endif // BITCHAN_BITMESSAGE_POW_H_