What is the purpose of the 'require' function in Solidity?
To generate random numbers
To create new contracts
To validate conditions and revert the transaction if the condition is not met
To encrypt sensitive data
Submit