Comments (5)
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.
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.
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.
./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.
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)
- exception inside `has_collision` HOT 3
- I am learning Zcash how it work by reading code,but this codes seems does not work. HOT 2
- have problem with print-soln HOT 1
- how to use it with python3?
- Python3 Implementation
- Use python2 by default
- local variable 'bar' referenced before assignment
- Failure in progressbar plot in the final round routine HOT 4
- Implementation still in sync with zcash's C++ one? HOT 2
- Remove the n/(k+1) restriction HOT 1
- Whats the expand_array function for? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zcash-pow.