Lesson 1 of 4 Ethereum Fundamentals

Blockchain and Ethereum Basics

Every later skill in this course builds on a clear picture of what Ethereum is. This lesson explains what a blockchain provides, how Ethereum differs from Bitcoin, what smart contracts and decentralised applications are, and which properties make developing for Ethereum different from ordinary software development.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how a blockchain keeps a shared, tamper-evident ledger.
  • Compare Ethereum with Bitcoin.
  • Describe smart contracts and decentralised applications.
  • Identify the properties that make smart contract development different from ordinary development.
  • Judge whether a use case benefits from a blockchain.

What a blockchain provides

A blockchain is a shared, append-only ledger maintained by many independent computers, called nodes, that do not need to trust each other. Transactions are grouped into blocks, and each block contains the cryptographic hash of the previous block. Changing any past transaction would change that block's hash and break the link to every later block, so history is tamper-evident. A consensus protocol decides which new block every honest node accepts, so all nodes hold the same ledger without a central operator.

The result is a system with useful properties: no single party can censor or reverse transactions on its own, anyone can verify the full history, and the system keeps running while individual nodes fail. The price is performance and cost: every node repeats the same work, so on-chain computation and storage are far more expensive than on a single server.

Sort into groups

A good fit for a blockchain?

Exam skills 7.1.1

Decide whether each requirement is a good reason to put data or logic on a public blockchain.

Log in to try this activity Interactive activities are free with an account.

From Bitcoin to a programmable blockchain

Bitcoin (2009) records transfers of one asset with a deliberately limited scripting language. Ethereum, proposed by Vitalik Buterin in 2013 and launched in July 2015, adds a general-purpose computer to the blockchain. Its ledger records not only balances but the code and data of programs, and every node runs those programs in the Ethereum Virtual Machine (EVM). The native currency, ether (ETH), pays for that computation.

The following comparison summarises the differences that matter to a developer.

Bitcoin
PurposePeer-to-peer electronic cash
State modelUnspent transaction outputs (UTXOs)
ProgrammingLimited, non-Turing-complete Script
Consensus todayProof of work
Block intervalAbout 10 minutes
Ethereum
PurposeProgrammable platform for applications and assets
State modelAccounts with balances, code and storage
ProgrammingTuring-complete smart contracts, usually written in Solidity
Consensus todayProof of stake (since September 2022)
Block interval12-second slots

Smart contracts and decentralised applications

A smart contract is a program stored at an address on Ethereum. It has its own balance and persistent storage, and it runs exactly as written whenever a transaction calls it. Nobody, including its author, can change its code after deployment unless an upgrade mechanism was designed in. A decentralised application (DApp) combines smart contracts, which hold the rules and the value, with an ordinary front end, such as a web page, that users reach through a wallet.

Common uses include tokens (ERC-20 currencies and ERC-721 non-fungible tokens), decentralised exchanges and lending protocols (decentralised finance, or DeFi), voting and governance, and supply chain and identity records. Many applications now run on layer 2 rollups, which execute transactions off the main chain and post compressed results back to it; they use the same EVM and tools, so the skills in this course apply to them directly.

True or false

Smart contract facts

Exam skills 7.1.1

Test your understanding of what a smart contract is and what it can do once deployed.

Log in to try this activity Interactive activities are free with an account.

What makes Ethereum development different

Developing smart contracts differs from building ordinary software in ways that shape every objective of this exam. The following terms describe those differences.

Immutability
Deployed code cannot be patched. Bugs must be found before deployment, which is why security and testing carry so much weight.
Public by default
All code, transactions and storage are visible to everyone, including attackers looking for flaws.
Cost per operation
Every computation and byte of storage costs gas, paid by users, so efficiency is a functional requirement.
Adversarial environment
Anyone can call any public function in any order, and contracts often hold value worth stealing.
Determinism
Contracts cannot call external APIs or use real randomness; every node must compute the same result.
Worked example

Is a blockchain the right tool?

A company wants to store customer support tickets, including names and email addresses, on Ethereum "for transparency". Is this a good use of a smart contract?

No. All Ethereum data is public and permanent, so personal data would be exposed to everyone and could never be deleted, which conflicts with privacy law and with the customers' interests. Storage is also expensive. A blockchain adds value when several parties who do not trust each other need a shared, tamper-evident record or need to transfer value without an intermediary. A better design keeps tickets in an ordinary database and, if tamper evidence matters, records only a hash of each ticket on chain.

Worked example

What happens when a bug is found

A team discovers that the token contract they deployed last week lets anyone mint tokens. The contract has no upgrade or pause mechanism. What are their options?

They cannot edit the deployed code. Their options are to deploy a corrected contract, take a snapshot of legitimate balances and migrate users to it, and persuade exchanges and wallets to recognise only the new address. Meanwhile, attackers can mint freely. The example shows why the exam stresses testing, security review and, where appropriate, designing emergency stops or upgradeability before deployment.

Check yourself

Why does changing a transaction in an old block break the chain?

Show answer

Each block contains the hash of the previous block. Changing a transaction changes its block's hash, so the next block's stored parent hash no longer matches, and every later block would have to be rebuilt and accepted by consensus.

Exam Tips

Remember for the exam

  • A blockchain is a shared, tamper-evident ledger kept consistent by a consensus protocol.
  • Ethereum adds Turing-complete smart contracts executed by every node in the EVM.
  • Smart contracts are immutable, public and pay for every operation in gas.
  • Never store personal or secret data on chain; store hashes or references instead.