How do cryptocurrencies work?

It is a distributed public ledger called a blockchain that records all transactions and is updated by currency holders. In cryptocurrency, coins are created by solving complicated mathematical problems using computer power.