Skip to main content

Why Is the Inclusion of a ‘Salt’ or Random Secret Number Essential in the Commitment Hash?

The inclusion of a 'salt' (a random secret number) is essential to prevent a 'brute-force' or 'pre-image' attack on the commitment hash. Without a salt, an attacker could calculate the hashes of all possible simple transactions and compare them to the public commitment, potentially revealing the intended trade.

The salt makes the hash unique and unpredictable, ensuring that only the original user, by knowing the secret salt, can reveal the transaction details and prove the hash's origin.

What Is the ‘Commitment’ Step in a Commit-Reveal Scheme and What Information Does It Contain?
What Is a Commit-Reveal Scheme and How Does It Deter Malicious Transaction Ordering?
Explain the Concept of a ‘Commit-Reveal Scheme’ as an Anti-Front-Running Measure
What Is the Risk of an Attacker Finding the Private Key Once the Public Key Is Known?