Write c code to implement the double sha-256 algorithm as used in Bitcoin mining. Assume I have a separate file called “sha256.c” with the basic sha-256 algorithm that you previously provided (also written in c code). Import or reference that file as needed.
Please include input variables from the Bitcoin header file and a dummy (all 0xf) nonce. Include a medium level of detailed comments to help explain what the code does.
Please reference Bitcoin mining standards and/or conventions to additionally include an extra comment to label the variables with the following all-capitalized words under the following two mutually exclusive conditions: If an input variable is constant, //*CONST* ; if an input variable can be changed by the miner, //*VARIES* .