group
group__libshare__memscrypt
The Scrypt virtual coin algorithm is an alternative to the common SHA bitcoin protocol.

Scrypt Virtual Coin Algorithm

function
(static) (inline)
static uint32_t swab32
(uint32_t v)
function
(static) (inline)
static void swap32yes
(void *out, const void *in, size_t sz)
function
void shscrypt_peer
(scrypt_peer *peer, char *nonce1, double diff)
function
int shscrypt
(scrypt_work *work, int step)
function
int shscrypt_verify
(scrypt_work *work)
function
void shscrypt_peer_gen
(scrypt_peer *peer, double diff)
function
double shscrypt_hash_diff
(scrypt_work *work)
function
void shscrypt_work
(scrypt_peer *peer, scrypt_work *work, char **merkle_list, char *prev_hash, char *coinbase1, char *coinbase2, char *nbit, char *ntime)
function
void shscrypt_swap256
(void *dest_p, const void *src_p)
function
void sh_calc_midstate
(struct scrypt_work *work)
function
int scrypt_test
(unsigned char *pdata, const unsigned char *ptarget, uint32_t nonce)
Scrypt hash generator.
define
bswap_16
((((value) & 0xff) << 8) | ((value) >> 8))
define
bswap_32
(((uint32_t)bswap_16((uint16_t)((value) & 0xffff)) << 16) | \ (uint32_t)bswap_16((uint16_t)((value) >> 16)))
define
bswap_64
(((uint64_t)bswap_32((uint32_t)((value) & 0xffffffff)) \ << 32) | \ (uint64_t)bswap_32((uint32_t)((value) >> 32)))
define
flip32
(swap32yes(dest_p, src_p, 32 / 4))