*Assignments Question *
- Write a function to give input string that output a SHA-256 hash that starts with 00000. Note : You have perform the brute force operation until you find value that starts with 00000.
- What if I ask you that input string should starts with stoshi ? How would you change the code ?
- Write a simple program that finds a nonce (a number) such that when the transactions and the nonce are concatenated and hashed using SHA-256, the hash starts with at least two zeros ("00").
satoshi => nakamoto| Rs 100 Ram=> Shyam| Rs 10
You can tried out these example assignment quesiton if you are beginner.
Top comments (0)