Git Product home page Git Product logo

Comments (5)

vattay avatar vattay commented on August 21, 2024

I think this is due to the way the POW implementations use blake2 for their hash generation vs the print solution script. If you look at pow.py:line71 it creates a long hash and cuts it up in to pieces, 512/n pieces. I'm not sure if this is an optimization (it does reduce the number of hash calls).

from zcash-pow.

4zec avatar 4zec commented on August 21, 2024

Yes, I think you are correct w.r.t how a 50-byte digest is used for two consecutive index values, but regardless, the blake2b setup will not be compatible. Overall, it seems like print-soln needs some updates to be useful.

from zcash-pow.

str4d avatar str4d commented on August 21, 2024

Yes, I didn't get around to updating print-soln at all when I updated the rest of the code to match zcashd 😝

from zcash-pow.

liuxurong avatar liuxurong commented on August 21, 2024

./print-soln.py 200 9 "04000000e54c27544050668f272ec3b460e1cde745c6b21239a81dae637fde4704000000844bc0c55696ef9920eeda11c1eb41b0c2e7324b46cc2e7aa0c2aa7736448d7a000000000000000000000000000000000000000000000000000000000000000068241a587e7e061d250e000000000000010000000000000000000000000000000000000000000000"

Traceback (most recent call last):
File "./print-soln.py", line 60, in
print_hashes(*generate_hashes(args.n, args.k, unhexlify(args.header)))
File "./print-soln.py", line 36, in generate_hashes
numIndices = ord(header[140]) if ord(header[140]) < 256 else struct.unpack('<H', header[141:143])
IndexError: string index out of range

from zcash-pow.

str4d avatar str4d commented on August 21, 2024

Finally finished and pushed this update, so you can now use print-soln.py to inspect the solutions of blocks from the live network 😄

from zcash-pow.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.