In the Bitcoin protocol, the block header is hashed twice using SHA-256:
HASH1 = SHA256(header)
HASH2 = SHA256(hash1)
The block header is 80 bytes long, and the nonce is located in the last 4 bytes (bytes 76 to 79). After the double SHA-256 operation, we get a final 32-byte HASH (HASH2), which is compared to the target.
My question is:
While converting this entire process into a Boolean formula using CNF (Conjunctive Normal Form), where exactly does the NONCE appear?
Especially, how does the NONCE influence the intermediate HASH (HASH1) and the final hash (HASH2) in CNF form?
Can we say the NONCE is "present" in any way in the intermediate HASH or final HASH?
I want to understand how the NONCE bits are represented in a SAT model of this double SHA-256 operation.