Skip to main content

How Do Verifiers Ensure the Proof Applies to the Correct Financial Context?

The proof is tied to the correct financial context by including a hash of the relevant context data within the statement being proved. This context data could include the smart contract address, the asset IDs, the expiry date of an option, or the current state root.

The verifier checks that this context hash is correctly incorporated and matches the current on-chain state.

What Is the Difference between SHA-256 and a Simpler Hash Function like CRC Used in Other Data Integrity Checks?
How Does the Verifier Prevent Replay Attacks on the Cryptographic Proof?
What Is a ‘Change Address’ and Why Is It Used in HD Wallets?
What Is a ‘Nonce’ in the Context of a Cryptocurrency Transaction?