Etash algoritm for mining

Everything else that doesn't fall into one of the other PB categories.
Etayson
Enthusiast
Enthusiast
Posts: 110
Joined: Sun Jun 05, 2016 5:01 pm

Etash algoritm for mining

Post by Etayson »

Hello everyone.
I'm trying to translate on the python procedures Purebasic.
Here is a link to the Python procedure: https://github.com/ethereum/wiki/wiki/Ethash
Results circuiting switch procedures python and purebasic identical. Those, If run on a python and purebasic program with the same input parameters , the results obtained are the same. It's good :)
But it is not what you need .:(
There is a program for mining ethereum (ethminer). She has a checking function . So if it is given the same input , the result will be different.
For procedures purebasic I use the SHA3_x64 here: http://www.purebasic.fr/english/viewtop ... 0&start=15
For procedures python I use the SHA3 here: https://pypi.python.org/pypi/pysha3

As I said the implementation of the same
But I can not understand why they differ from the results of the program ethminer.
Parameter header ="e747e1b0c718a531f06b2fd71a2cbfafd9f0258cf945ca19120d18e7a49d5f97"
nonce="83cd23ad29fd1009"

for test ethminer result i use:
ethminer --check-pow e747e1b0c718a531f06b2fd71a2cbfafd9f0258cf945ca19120d18e7a49d5f97 8f602dc7d86df0a7c8e7467ec0d211062ee85c5c14c6d2f6c025976cf550e8c5 53608258684470 83cd23ad29fd1009
and get result:
0dfb352810119ec0fdf9a2a3c8840490d1ed7b0254b3f7421a557209e5720982

After performing the procedures in Python and purebasic. I get the same result :
d0f4db1263f879cd6e727defba670d7d6347762c22b49bebc3bc29ad4c663b7f

Here is a link to the archive . It Dag file (1,5Gb) and source code in purebasic:
https://yadi.sk/d/OiqBP3ccsohKG
Who else can help me ?