moopless / stratum-mining-litecoin

This fork is no longer maintained. Please use https://github.com/ahmedbodi/stratum-mining
Other
38 stars 35 forks source link

keccak support for CopperLark #51

Open nberesnev83 opened 11 years ago

nberesnev83 commented 11 years ago

Please help integrate support keccak sha3. Little knowledge of the language is, but I can not figure out how to register a hash function. Ordered as follows: hash_bin = yac_scrypt.getPoWHash(''.join([ header_bin[i_4:i_4+4][::-1] for i in range(0, 20) ]), int(ntime, 16)) But it's the same for yacoin, but as for keccak not know.

moopless commented 11 years ago

Whats the sha3 library that you are using? The ''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]), int(ntime, 16) puts the binary header in little endian. There will be some other modifications needed to run sha3. If you look at the first commits I made on this branch it should help out.