Post
Topic
Board Mining (Altcoins)
Re: Antminer D3 Blissz firmware (21/11 update available!)
by
mcan
on 22/11/2017, 12:17:17 UTC

Where is Xhash() function defined ? It has called from driver-btm-DASH.c but i could not see anywhere that the function decribed declared ..


in
Code:
x11/xcoin.c
Code:
void Xhash(void *state, const void *input)
{
//printf("-----------------Xhash-------------------\n");

    DATA_ALIGN16(unsigned char hashbuf[128]);
    DATA_ALIGN16(size_t hashptr);
    DATA_ALIGN16(sph_u64 hashctA);
    DATA_ALIGN16(sph_u64 hashctB);

    int speedrun[] = {0, 1, 3, 4, 6, 7 };
    int i;
    DATA_ALIGN16(unsigned char hash[128]);
    /* proably not needed */
    memset(hash, 0, 128);

// blake1-bmw2-grs3-skein4-jh5-keccak6-luffa7-cubehash8-shavite9-simd10-echo11

#ifdef DUMP_INFO_PERSTEP
char strInfo[1024];
unsigned char *pByte;
uint64_t tmpValue;
char ret_line[3]={'\r','\n','\0'};

printf("-----------------X11 input-------------------\n");
pByte=(unsigned char *)input;
BinToHexStr(strInfo,pByte,128);
printf("input=%s\n",strInfo);
#endif

//---blake1---
    DECL_BLK;
    BLK_I;
    BLK_W;
    BLK_C;

#ifdef DUMP_INFO_PERSTEP
printf("-----------------blake output-------------------\n");
pByte=(unsigned char *)hash;
BinToHexStr(strInfo,pByte,128); // defined unsigned char hash[128]
printf("hash=%s\n",strInfo);
#endif
So if we return from here ? Are going to get grostl hash as output ?
How is it invoking asics ?

i think we need:
1) made this mode in the function, for go i grs3;
2) recomplie the cgminer
3) rebuild the firmware whit this chage
4) Test it

Anyone can help for this step? i think we are on the right track  Cool

I really could not understand what is going on that code, it takes each algorithm step by step but how ? because there is no any assignment , just memcpy so how is it interacting with asics ? Huh Huh