Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we generate desired hash code ? #45

Closed
ramasai-badam opened this issue Jun 11, 2020 · 1 comment
Closed

How can we generate desired hash code ? #45

ramasai-badam opened this issue Jun 11, 2020 · 1 comment

Comments

@ramasai-badam
Copy link

You have mentioned in proof_of_work function that we have to generate hash code until it satisfies our difficulty criteria. But how can we generate different hash codes when hash code for a string remains same no matter how many times we run the algorithm ?

@satwikkansal
Copy link
Owner

The string also contains "nonce" which keeps changing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants