Cryptocurrency & Blockchain
Online M.Com · Sem 3
0% complete
0/5 lessons
Lesson 1 of 5FinTech
Blockchain Basics: Distributed Ledger, Hashing and PoW vs PoS
Cryptocurrency & Blockchain
About the video
03. How Blockchain and Mining Work: Consensus, Hashing, and Fees
Trendlly Lab
Study notes
A blockchain is a distributed ledger of blocks linked by cryptographic hashes, which makes the transaction history tamper-evident. Consensus mechanisms such as Proof of Work and Proof of Stake let untrusting nodes agree on the ledger's state.
Distributed ledger
- Many nodes hold copies of the ledger instead of relying on a central authority.
- Transactions are grouped into blocks, and each block stores the hash of the previous block.
- Changing an old block changes its hash and breaks every later link, which makes tampering evident.
Hashing
- A hash function maps any input to a fixed-size output (e.g. SHA-256 gives 256 bits).
- Properties: deterministic, fast to compute, pre-image resistant, collision resistant, avalanche effect.
- A Merkle root summarises all the transactions in a block.
Proof of Work
- Miners vary a nonce until the block hash is below a target, i.e. starts with enough leading zeros.
- Finding a valid hash is hard, but checking it is easy.
- The longest (most-work) chain wins, so an attack needs more than 50% of the hash power.
- Used by Bitcoin; it is energy-intensive.
Proof of Stake
- Validators lock up (stake) coins and are chosen to propose or attest blocks in proportion to their stake.
- Misbehaviour is punished by slashing the stake.
- It is far more energy-efficient than PoW; used by Ethereum since 2022.
Key terms
- Distributed ledger
- A database replicated and synchronised across many nodes.
- Hash function
- A one-way function producing a fixed-length digest of the data.
- Nonce
- A number that miners vary to find a valid PoW hash.
- Proof of Work
- Consensus based on expending computational effort.
- Proof of Stake
- Consensus where validators are selected by the coins they stake.
- Slashing
- Confiscation of stake as a penalty for dishonest validation.
Takeaways
- Hash links make the blockchain tamper-evident.
- PoW secures the chain with computation; PoS secures it with economic stake.
- Consensus lets nodes that do not trust each other agree without a central party.
Contribute
Was this lesson helpful?
We read every rating and fix the weakest lessons first.