How does Monero prove that transaction amounts are valid without revealing them?
Monero achieves the paradox of proving value validity without revealing the value, using advanced commitment schemes.
Quick Answer
Monero uses Pedersen commitments to hide transaction amounts while allowing the network to verify their validity. A commitment 'locks' a value mathematically, enabling the network to sum inputs and outputs to ensure they match. Zero-knowledge proofs—specifically range proofs like Bulletproofs—then prove that the hidden amounts are non-negative. This ensures the total balance remains consistent and inflation-free without anyone ever seeing the actual amounts being transferred.
Pedersen Commitments
A Pedersen commitment allows you to commit to a value and a secret, providing a way to verify the sum of inputs equals the outputs. Even without knowing the specific values, the network can check that (Inputs) - (Outputs) = 0, ensuring total coins entering and leaving the transaction are accounted for perfectly.
Validating Ranges
Commitments alone don't prove a value is positive; you could commit to a negative number to create money. Range proofs are the mechanism that checks the committed value is a valid positive number. Together with the commitment, they form a robust security proof that protects the system from counterfeiting.
Sources
Related reading
Key takeaways
- Pedersen commitments allow for the hiding of transaction amounts.
- Range proofs are required to prevent negative values and unauthorized supply growth.
- Inflation is mathematically prevented via consensus-enforced balance checks.
