bitmessage-js/src/pow.h

14 lines
328 B
C
Raw Normal View History

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