Podcast
Questions and Answers
In Proof-of-Work (PoW) consensus, what determines the threshold value a node must meet when proposing a new block?
In Proof-of-Work (PoW) consensus, what determines the threshold value a node must meet when proposing a new block?
- The network's current mining difficulty. (correct)
- The computational power of the node.
- The size of the block being proposed.
- The total number of transactions in the block.
How does the 'longest chain rule' resolve disagreements in a blockchain when two blocks are mined simultaneously?
How does the 'longest chain rule' resolve disagreements in a blockchain when two blocks are mined simultaneously?
- By having nodes switch to the chain with the most accumulated 'chainwork'. (correct)
- By reverting to the previous block and ignoring the simultaneous blocks.
- By discarding both blocks and restarting the mining process.
- By prioritizing the block proposed by the node with the highest computational power.
What is a key difference in reward distribution between solo mining and pool mining?
What is a key difference in reward distribution between solo mining and pool mining?
- Pool mining offers smaller, more frequent rewards, while solo mining yields infrequent, larger rewards. (correct)
- Solo mining rewards are based on contribution to the pool, while pool mining offers fixed rewards.
- Solo mining rewards are only transaction fees, while pool mining includes block rewards.
- Solo mining offers smaller, more frequent rewards, while pool mining offers infrequent, larger rewards.
What are the two primary components of the total incentive earned by a Bitcoin miner?
What are the two primary components of the total incentive earned by a Bitcoin miner?
What is the main purpose of 'halving' in the Bitcoin protocol?
What is the main purpose of 'halving' in the Bitcoin protocol?
What is the primary idea behind Proof of Stake (PoS) consensus mechanisms?
What is the primary idea behind Proof of Stake (PoS) consensus mechanisms?
In Proof of Stake (PoS), what does a validator's 'stake' typically represent?
In Proof of Stake (PoS), what does a validator's 'stake' typically represent?
What would a hacker need to control to perform a 51% attack on a Proof-of-Stake (PoS) based cryptocurrency?
What would a hacker need to control to perform a 51% attack on a Proof-of-Stake (PoS) based cryptocurrency?
What is the primary function of the Ethereum Virtual Machine (EVM)?
What is the primary function of the Ethereum Virtual Machine (EVM)?
In the context of Ethereum, what is the purpose of 'gas'?
In the context of Ethereum, what is the purpose of 'gas'?
How do Externally Owned Accounts (EOAs) in Ethereum differ from Contract Accounts (CAs)?
How do Externally Owned Accounts (EOAs) in Ethereum differ from Contract Accounts (CAs)?
What did 'The Merge' refer to in the context of Ethereum?
What did 'The Merge' refer to in the context of Ethereum?
What is the term used to describe the new versions of Ethereum clients (like Geth, Nethermind, Besu) after 'The Merge'?
What is the term used to describe the new versions of Ethereum clients (like Geth, Nethermind, Besu) after 'The Merge'?
What is the role of Proof of History (PoH) in Solana's hybrid consensus model?
What is the role of Proof of History (PoH) in Solana's hybrid consensus model?
Which of the following best describes Solana’s capability, contributing to its design as a high-performance blockchain?
Which of the following best describes Solana’s capability, contributing to its design as a high-performance blockchain?
Which type of blockchain provides the highest degree of decentralization and is permissionless?
Which type of blockchain provides the highest degree of decentralization and is permissionless?
How does a consortium blockchain differ from a private blockchain?
How does a consortium blockchain differ from a private blockchain?
If a blockchain implements a 'monolithic architecture', what does this imply about its functionalities?
If a blockchain implements a 'monolithic architecture', what does this imply about its functionalities?
What is the primary purpose of Layer 2 blockchain solutions?
What is the primary purpose of Layer 2 blockchain solutions?
In the context of Layer 2 solutions, what happens when coins are 'burnt'?
In the context of Layer 2 solutions, what happens when coins are 'burnt'?
Which of the following is NOT a cryptographic primitive used in securing a blockchain ecosystem?
Which of the following is NOT a cryptographic primitive used in securing a blockchain ecosystem?
Which cryptographic goal ensures that actions affecting security can be traced back to the responsible party?
Which cryptographic goal ensures that actions affecting security can be traced back to the responsible party?
What is the purpose of the Byzantine Generals' Problem in the context of distributed computing?
What is the purpose of the Byzantine Generals' Problem in the context of distributed computing?
If the difficulty of mining in Bitcoin requires 5 leading zeros, what would a valid, mined hash potentially look like?
If the difficulty of mining in Bitcoin requires 5 leading zeros, what would a valid, mined hash potentially look like?
How frequently is the mining difficulty adjusted in Bitcoin?
How frequently is the mining difficulty adjusted in Bitcoin?
What is the primary purpose of increasing the mining difficulty in a Proof-of-Work (PoW) blockchain?
What is the primary purpose of increasing the mining difficulty in a Proof-of-Work (PoW) blockchain?
Which factor, related to external influences, can most directly affect mining difficulty?
Which factor, related to external influences, can most directly affect mining difficulty?
Why is asymmetric cryptography appropriate for use with blockchains?
Why is asymmetric cryptography appropriate for use with blockchains?
Which of the following is a goal of Ethereum's GHOST protocol?
Which of the following is a goal of Ethereum's GHOST protocol?
What is the term given to blockchain blocks that are not part of the main chain and have a parent on the main chain?
What is the term given to blockchain blocks that are not part of the main chain and have a parent on the main chain?
Why are Ethereum 'uncle blocks' important for maintaining security?
Why are Ethereum 'uncle blocks' important for maintaining security?
What is the main advantage of staking in a blockchain network using Proof-of-Stake method?
What is the main advantage of staking in a blockchain network using Proof-of-Stake method?
During the Ethereum merge, what was the typical slot duration?
During the Ethereum merge, what was the typical slot duration?
What is the main characteristic of Ethereum's architecture?
What is the main characteristic of Ethereum's architecture?
Which of the following blockchains can use Proof-of-Authority(PoA) or Proof-of-Work(PoW)?
Which of the following blockchains can use Proof-of-Authority(PoA) or Proof-of-Work(PoW)?
In the context of block validation, which validation method does Proof of Stake(PoS) employ?
In the context of block validation, which validation method does Proof of Stake(PoS) employ?
Flashcards
Blockchain Security
Blockchain Security
Securing blockchain requires hash functions, symmetric & digital signatures.
Distributed System
Distributed System
A computing paradigm where nodes work together to achieve a common outcome.
Honest Node
Honest Node
Node following protocol rules to maintain network integrity
Faulty Nodes
Faulty Nodes
Signup and view all the flashcards
Malicious Nodes
Malicious Nodes
Signup and view all the flashcards
Applications
Applications
Signup and view all the flashcards
Execution
Execution
Signup and view all the flashcards
Consensus
Consensus
Signup and view all the flashcards
Cryptography
Cryptography
Signup and view all the flashcards
P2P
P2P
Signup and view all the flashcards
Network
Network
Signup and view all the flashcards
Full Node
Full Node
Signup and view all the flashcards
Lightweight node
Lightweight node
Signup and view all the flashcards
Mining Nodes
Mining Nodes
Signup and view all the flashcards
Masternodes
Masternodes
Signup and view all the flashcards
Validator Nodes
Validator Nodes
Signup and view all the flashcards
Archival Nodes
Archival Nodes
Signup and view all the flashcards
Digital Ledger Technology (DLT)
Digital Ledger Technology (DLT)
Signup and view all the flashcards
Distributed Ledger
Distributed Ledger
Signup and view all the flashcards
Decentralized System
Decentralized System
Signup and view all the flashcards
CBDC
CBDC
Signup and view all the flashcards
Public blockchain
Public blockchain
Signup and view all the flashcards
Private blockchain
Private blockchain
Signup and view all the flashcards
Consortium Blockchain
Consortium Blockchain
Signup and view all the flashcards
Layer 1 blockchain
Layer 1 blockchain
Signup and view all the flashcards
Molithic architecture
Molithic architecture
Signup and view all the flashcards
Polylithic architecture
Polylithic architecture
Signup and view all the flashcards
Layer 2 blockchains
Layer 2 blockchains
Signup and view all the flashcards
Securing blockchain
Securing blockchain
Signup and view all the flashcards
Confidentiality
Confidentiality
Signup and view all the flashcards
Integrity
Integrity
Signup and view all the flashcards
Authentication
Authentication
Signup and view all the flashcards
Accountability
Accountability
Signup and view all the flashcards
Non-repudiation
Non-repudiation
Signup and view all the flashcards
ECDSA
ECDSA
Signup and view all the flashcards
Byzantine Generals' Problem
Byzantine Generals' Problem
Signup and view all the flashcards
Meaning Difficulty
Meaning Difficulty
Signup and view all the flashcards
Study Notes
Blockchain Ecosystem Overview
- Lecture focuses on Blockchain Architecture Part 1, mining rewards, and the Ethereum and Solana ecosystems.
- Topics covered include mining, chain rules, mining incentives, Proof of Stake (PoS), Ethereum, The Merge, and Solana.
Mining, Chain Rules, and PoW Consensus
- Proof of Work (PoW) uses hash puzzles to maintain network difficulty.
- A node proposing a block must find a nonce so that H(nonce || previous hash || Tx...) < Threshold value.
- The target value for a valid block is based on the mining difficulty.
- The process maintains an average block mining rate of 10 minutes.
- Nodes follow the longest chain rule in cases where two blocks are mined simultaneously.
- Nodes immediately switch to the longest chain if one chain gets longer at some later stage in history.
- The longest chain rule protects blocks already mined.
- It resolves disagreements when two blocks are mined simultaneously.
Solo vs Pool Mining
- Solo mining involves an individual miner completing proof of work for the chance to claim the entire block reward.
- Pool mining involves miners combining resources to increase their odds of mining a block, sharing rewards proportionally.
- With regards to Reward Distribution, solo mining yields infrequent but larger rewards, and pool mining provides smaller, regular payouts.
- With regards to Computational Power Requirements, solo mining is resource-intensive, whereas pool mining is more accessible.
Bitcoin Mining Incentives & Halving
- Total incentive earned by a Bitcoin miner includes block reward + transaction fees.
- Block Reward is a fixed amount of bitcoins, and halves every four years (Bitcoin halving).
- Total Transaction Fees represents the sum of all transaction fees in a block.
- The formula for transaction fee: sum(inputs) - sum(outputs).
- Factors affecting transaction fees: network congestion, miner preferences, changes to protocol
- Bitcoin implements "halving," reducing mining rewards by half approximately every four years.
- Halving is built into Bitcoin's protocol by Satoshi Nakamoto to control the issuance of new bitcoins, thus mimicking scarcity and reducing inflation.
- Halving reduces the rate at which new bitcoins are created, slowing down the increase in supply.
- The Bitcoin halving process is expected to continue around the year 2140.
- After that, miners are expected to be incentivized primarily through transaction fees.
Proof of Stake (PoS) & Virtual Mining
- Proof of Stake (PoS) is also known as virtual mining.
- Pos was proposed in Peercoin (August 2012).
- EOS, NxT, Steem, Ethereum 2.0, Polkadot, & Tezos use PoS algorithms.
- With PoS, a "stake" is the number of coins in the consensus protocol staked by a participant.
- The key idea of PoS: someone with stake in the system will not try to sabotage the system.
- A PoS miner is called a validator/minter/stakeholder.
- PoS mechanisms select a validator and grants appropriate rights to it based on its staked assets.
- Stake calculation may depend on balance, unused deposit value, or voting among validators.
- Once stake is calculated and a validator is selected, the block is readily accepted.
- Selection probability increases with a higher stake.
- PoS variations: Chain-based, Committee-based, Delegated, PoA, etc.
PoW vs PoS
- PoW depends on computational power; PoS relies on the stake in the network.
- Miners receive rewards when solving a puzzle, while validators collect transaction fees.
- PoW attackers need >51% computational power; PoS attackers need >51% of the cryptocurrency.
Ethereum Architecture Overview
- In 2015, Vitalik Buterin released Ethereum as a next-generation, open-source blockchain for Decentralized Applications (DApps).
- Ethereum is powered by Smart contracts and the Ether (ETH) cryptocurrency.
- Etheruem focuses on smart contracts and complex systems such as Dapps and DAOs.
- Key features of the Ethereum blockchain include:
- Currency: ETH
- Founder: Vitalik Buterin & Team
- Smallest Unit: 1 Wei = 0.000000000000000001 ETH
- Supply: No Fixed Supply
Ethereum Architecture Details
- Ethereum is described as a "transaction-driven state machine."
- It has a P2P Ethereum Network.
- Geth Ethereum Client connects to P2P Net to carry out Mining and Account Management
- The Private Ethereum Network uses Proof of Authority (PoA).
- Ethereum client uses a EVM.
- Run time environment for Eth smart contracts
- Each full node locally stores/updates the blockchain state.
- Ethereum Smart contract developers use JSON RPC to allow for easy use.
Ethereum Key Components
- The key components of Ethereum include:
- EVM and Smart contracts, DApps and DAO
- Accounts, Wallets, Gas and Fees
- Consensus and Block Difficulty.
EVM & Smart Contracts
- Ethereum Virtual Machine (EVM) is a computing stack embedded within Full Ethereum nodes.
- Ethereum's EVM executes Smart contract byte codes.
- Smart contracts self-execute based on "if…else" conditions.
- Smart contracts are written in Solidity, then compiled into byte codes for EVM.
Ethereum Accounts
- The main building blocks of Ethereum blockchain are accounts.
- Accounts are defined by private and public key pairs.
- The public address is to share with others to receive funds.
- The private key is used to sign transactions and prove ownership of the account.
- Ethereum accounts' send and receive transactions in the network.
- An account represents an entity with an Ether (ETH) balance for transacting.
- EOA: Externally Owned Accounts represent any user-owned account address, with an ETH balance encrypted with private key.
Etheruem Wallets
- Wallets manage and access Ethereum accounts.
- Wallets display balance, transaction history and also provides the ability to send and recive ether and tokens.
- Accounts can be accessed from different wallets with a private key or seed phrase.
- Wallets generate a seed phrase for initial setup.
Gas & Fees
- Gas is a unit (in Wei) required to be paid for every operation performed on Ethereum's blockchain.
- Gas is charged in three scenarios: computation, increase in memory use, or contract/ transaction.
- 1 Wei = 10-18 ETH, and 1 Gwei = 1 Giga Wei.
- If a transaction is included in one block a fee is paid.
- Fee = (base_fee + priority_fee) * gas_used - Base_fee: value determined by protocol - Priority_fee: paid to block proposer
PoW Consensus: Bitcoin vs Ethereum
- Block time in Ethereum is 13 -15 seconds compared to Bitcoin which is ~10 mins.
- Diffculty adjustmemt is Dynamic in Ethereum compared to Bitcoins which is static every 2016 blocks.
- Goals is dapp and quick transacitons in Ethereum and a secure store of value in Bitcoin.
- Rewards are given to uncles and No rewards ar given and become stale blocks in Ethereum.
- GHOST Protocol for security instead of the longest chain rule used by Bitcoin.
Ethereum Block Details Post "The Merge"
- Post "The Merge", Ethereum relies in PoS consensus.
- Validation method is Stake-based selection over Crytographic puzzles used by blockchain.
- 1/32 of valadators attest o a block created during each slot In-protocol rewards: transaction + priority fee
Solana Architecture
- Solana is a high-performance blockchain known for fast transaction processing.
- Solana uses a hybrid of Proof of History (PoH) and Proof of Stake (PoS).
- Designed to support scalable decentralized applications without compromising security.
Solana Consensus
- It is a hybrid system combining Proof of History (PoH) and Proof of Stake (PoS) algorithms.
- There are messages sent by users and ordered output sent to replicator nodes of the algorithm.
Comparison of Cryptocurrency Technologies
- Bitcoin
- Launch Year: 2009
- Primary Purpose: Digital Currency
- Consensus Mechanism: Proof of Work (PoW)
- Transaciton Speed ~3-7 transactions per second
- Ethereum
- Launch Year: 2015
- Primary Purpose: Smart Contracts & DApps
- Consensus Mechanism: PoW transitioned to PoS -Transaciton Speed ~15-45 transactions per second
- Solana
- Launch Year: 2020
- Primary Purpose: High-Speed Transactions & DApps
- Consensus Mechanism: Proof of History (PoH) combined with PoS -Transaciton Speed ~50000+ transactions per second
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.