khovratovich / equihash

Equihash: memory-hard PoW with fast verification
Creative Commons Zero v1.0 Universal
127 stars 44 forks source link

equihash integration #3

Open goodthebest opened 6 years ago

goodthebest commented 6 years ago

@khovratovich Not, sure if I can phrase my query right. I'm not that technical into C ++, just wondering how can we implement and integrate equihash algo into our mining application? Any hint, guide or reference will be appreciated to achieve this.

ramytarchichy commented 6 years ago

Based on pow-test.cc:

//Create PoW challenge
Equihash equihash(n,k,seed);

//Solve it
Proof p = equihash.FindProof();

//Verify the solution
bool valid = p.Test();

So you'd want to download the challenge info from the mining pool, solve it, and send the solution back to the pool for it to verify it.

L0gi commented 6 years ago

Hi, am I missing something or does the implemented Test only test for the overall collision condition and not the Algorithm binding condition? i.e. a verifier should implement that in addition to what you are doing in Proof.Test()? (If so that may explain why some verifier libraries that are out there are missing the Algorithm binding condition. )

Also am I understanding correctly, that this reference implementation does not support difficulty conditions as proposed in your paper?

ETS5 commented 6 years ago

How difficult would it be to have the yiimp fork support this algorithm? It seems to be based off both blake2 and blake2b which if i remember correctly the yiimp based mining application supports as well.