Computer Science/Java program

In Bitcoin, a value called a Nonce is used to secure a block in the blockchain. The Nonce is a value which when hashed with the overall hash of the block produces a value with 61 leading zeroes (in binary). Recall that the Bitcoin hash is SHA256 which is a 256-bit binary value.

For this program, compute the hash of the string “ABCDEFGHIJ” and find the nonce such that the 32-bit hash value has eight leading zeroes. In hex, this would be 0x00_ _ _ _ _ _. Use the hashCode(int, int) method from Program 2. You must find the nonce via trial and error. The hashCode method is weak from a cryptographic viewpoint, and so an analytical solution is possible.

Order from us and get better grades. We are the service you have been looking for.