Post
Topic
Board Mining (Altcoins)
Re: [ANN] cudaMiner - a new litecoin mining application [Windows/Linux]
by
djm34
on 07/03/2014, 14:22:05 UTC
guys, there is a Chinese cryptocurrency called huitongbi and someone asked if I can make a cuda miner for it.

I've looked at the wallet's source code and I find this.

Code:
void scrypt_hash(const void* input, size_t inputlen, uint32_t *res, unsigned char Nfactor)
{
    Nfactor = 9;
    return scrypt((const unsigned char*)input, inputlen,
                  (const unsigned char*)input, inputlen,
                  Nfactor, 5, 0, (unsigned char*)res, 32);
}

a bit later there is this

Code:
        scrypt((const unsigned char*)&data, 80,
               (const unsigned char*)&data, 80,
               Nfactor, 8, 0, (unsigned char*)hash, 32);
        hash_count += 1;

and yet the scrypt function only takes 4 arguments

Code:
static void scrypt(const void* input, size_t inputlen, uint32_t *res, void *scratchpad)


much confused...

code is here: http://pan.baidu.com/wap/share/home?uk=2923272396&third=0

Chinese web page is http://huitongbi.com

does it compile ?