group
group__libshare__memscrypt
The Scrypt virtual coin algorithm is an alternative to the common SHA bitcoin protocol.
Scrypt Virtual Coin Algorithm
(static)
(inline)
static uint32_t swab32
(uint32_t v)
(static)
(inline)
static void swap32yes
(void *out, const void *in, size_t sz)
void shscrypt_peer
(scrypt_peer *peer, char *nonce1, double diff)
int shscrypt
(scrypt_work *work, int step)
int shscrypt_verify
(scrypt_work *work)
void shscrypt_peer_gen
(scrypt_peer *peer, double diff)
double shscrypt_hash_diff
(scrypt_work *work)
void shscrypt_work
(scrypt_peer *peer, scrypt_work *work, char **merkle_list, char *prev_hash, char *coinbase1, char *coinbase2, char *nbit, char *ntime)
void shscrypt_swap256
(void *dest_p, const void *src_p)
void sh_calc_midstate
(struct scrypt_work *work)
int scrypt_test
(unsigned char *pdata, const unsigned char *ptarget, uint32_t nonce)
Scrypt hash generator.
bswap_16
((((value) & 0xff) << 8) | ((value) >> 8))
bswap_32
(((uint32_t)bswap_16((uint16_t)((value) & 0xffff)) << 16) | \
(uint32_t)bswap_16((uint16_t)((value) >> 16)))
bswap_64
(((uint64_t)bswap_32((uint32_t)((value) & 0xffffffff)) \
<< 32) | \
(uint64_t)bswap_32((uint32_t)((value) >> 32)))
flip32
(swap32yes(dest_p, src_p, 32 / 4))