A cryptocurrency network verifies a transaction when a validator solves a mathematical puzzle. For example, in Bitcoin, the network uses proof-of-work to validate transactions and helps prevent cyber attacks on the blockchain.