Algorithm
An algorithm is a defined set of step-by-step instructions that a computer follows to complete a task or solve a problem. In the context of cryptocurrency, algorithms are the mathematical backbone behind nearly every function a blockchain performs, from validating transactions and generating new blocks to encrypting wallet keys and reaching consensus among thousands of independent network participants.
Several types of algorithms are especially important in crypto. Cryptographic hashing algorithms, such as SHA-256 used by bitcoin, take any amount of input data and produce a fixed-length, unique output, a process central to securing transactions and linking blocks together in a tamper-evident chain. Consensus algorithms, such as proof-of-work or proof-of-stake, define the rules by which a decentralized network agrees on which transactions are valid without needing a central authority. Mining algorithms determine exactly what computational puzzle miners must solve to add a new block and earn a reward.
Trading algorithms are another common use of the term in crypto markets, referring to automated programs that execute trades based on predefined rules and market conditions, often reacting to price movements far faster than a human trader could. These algorithmic trading bots range from simple tools that automatically buy or sell at set price thresholds to highly sophisticated systems used by institutional traders that analyze vast amounts of market data in real time.
The specific algorithm a blockchain uses has real consequences for its performance, security, and energy consumption. Bitcoin’s proof-of-work algorithm, for example, requires enormous computational effort, which supports strong security but consumes significant electricity, while Ethereum’s proof-of-stake algorithm, adopted in 2022, dramatically reduced energy use by replacing computational competition with staked collateral as the basis for network security.
Understanding that algorithms are simply precise, repeatable sets of rules helps demystify much of the technical language surrounding cryptocurrency, since nearly every property people associate with blockchain technology, security, decentralization, transaction speed, and even a coin’s supply schedule, ultimately traces back to the specific algorithms its underlying protocol was designed to follow.