decrypt101
SocialOpen ProjectsSupport me My Resumes
  • Preface
    • Motivation
    • Roadmap’s
  • Introduction to Blockchain
    • A Brief History
    • Growth of Blockchain
    • Structure of Blockchain
    • Types of Blockchain
    • Key Technologies of Blockchain
    • Features of Blockchain
    • How Blockchain Works ?
    • Implementation of Blockchain
    • Summary
  • Components of Blockchain Architecture
    • Distributed Ledger
    • Blocks
    • Transaction
    • Chain
    • Peer-to-Peer Network
    • Blockchain Layers
    • Off-Chain & On-Chain
    • Wallet
    • Mining
    • Tokens
    • Assets
    • State Channels
    • Sidechains
    • Oracles on Blockchain
    • Atomic Swaps
    • Decentralized Identity (DID)
    • Blockchain Data Storage
    • Interoperability
    • Data structures for Scaling Blockchain
    • Maximal Extractable Value (MEV)
  • Consensus Mechanisms
    • Proof of Work (PoW)
      • Implemation Using Rust
    • Proof of Stake (PoS)
    • Proof of Burn (PoB)
    • Proof of Capacity (PoC)
    • Proof of Activity (PoAc)
    • Proof of Weight (PoWe)
    • Proof of Luck (PoL)
    • Proof of Ownership (PoO)
    • Proof of Existence (PoE)
    • Proof of Believability (PoBe)
    • Proof of History (PoH)
    • Proof of Authority (PoA)
    • Proof of Elapsed Time (PoET)
  • Cryptographics
    • Encryption & Decryption
      • Symmetric Encryption
      • Asymmetric Encryption
      • Key Management and Exchange
      • Implementation
    • Cryptographic Hashing
      • Secure Hash Algorithms (SHA)
      • Message Digest Algorithms
      • Ethash
      • Blake2
      • SCrypt
      • RIPEMD-160
    • Digital Signature
      • Digital Signature Algorithms
      • Digital Signature in Blockchain
    • Zero-Knowledge Proofs (ZKPs)
      • Types of Zero-Knowledge Proof and Protocols
      • A Case Study of Polygon Platform
    • Multi-Party Computation (MPC)
    • Cryptanalysis
    • Practical Implementation
  • Decentralized Application (DApp)
    • Design and UX in Web3
  • Smart Contract
    • Development Tools
    • Solidity
    • Testing Smart Contract
    • Developing Smart Contract
    • Interacting & Deploying with Smart Contract
    • Verifying Smart Contracts
    • Upgrading Smart Contracts
    • Securing Smart Contract
    • Smart Contract Composability
    • Testnet and Mainnet
    • Blockchain Platform Using Smart Contract
    • Application of Smart Contract
    • Practical Implementation
  • Blockchain Platforms
    • Ethereum
      • Ethereum Virtual Machine (EVM)
      • ETHER and GAS
      • Ethereum transaction
      • Ethereum Accounts
      • Ethereum Stacking
      • Ethereum Network
      • Ethereum Scaling Solutions
      • Ethereum Use-Cases
      • Getting Started with Ethereum
      • Ethereum Ecosystem and Support
    • Solana
      • Solana Architecture
        • Solana Account Model
        • Solana Wallet
        • Transactions and Instructions
        • Solana Programs
        • Program Derived Address (PDA)
        • Cross Program Invocation (CPI)
        • Tokens on Solana
        • Clusters and Public RPC Endpoints
        • Transaction Confirmation & Expiration
        • Retrying Transactions
        • Versioned Transactions
        • Address Lookup Tables
        • State Compression
        • Actions and Blinks
      • Solana Developments
      • Solana Client
      • Advanced Solana
      • Solana Scaling and Performance Architecture
      • Solana Solutions and cases
      • Practical Implemenation
    • Binance Smart Chain (BSC)
      • Create a BEP20 Token
    • Hyperledger Fabric
    • Cosmos
    • Polkadot
    • Quorum
    • Polygon
    • Algorand
    • Corda
    • Avalanche
    • TRON
    • Summary
  • Decentralized Finance (DeFi)
    • DeFi Components
    • DeFi Protocols
    • DeFi Platforms
    • DeFi Risk Classification
      • Infrastructure-layer Attacks
      • Smart Contract Layer-attacks
      • Application Layer-attacks
      • DeFi Risks
    • DeFi and Blockchain
    • DeFi Impact
  • Decentralized Ecosystem and Digital Innovation
    • Layer 2 Scaling Fundamental
    • Tokenomics
    • Cryptocurrency
    • Quantative Trading
    • NFTs
    • GameFi
    • Metaverse
  • Blockchain as a Service (BaaS)
    • Building Fullstack Blockchain Platform
    • Decentralized Digital Identity
    • Build a Cryptocurrencies Exchange
    • Play-to-Earn Gaming
    • Solana Token Airdrop Manager
    • Smart Contract Development on Solana with Rust
    • Quantitative Trading Platform
    • Insurances protocols
    • Flash Loans
    • Asset Management
    • Tokenized Derivatives
    • Automated Market Makers (AMMs)
    • Staking
    • Lending and Borrowing Platforms
    • Yield Farming
    • Stablecoin System
    • Security Token Offerings (STOs)
    • Initial Coin Offerings (ICOs)
    • On-Chain Voting Systems
    • Decentralized Autonomous Organizations (DAOs)
    • NFT Marketplaces
    • Provenance Verification
    • Supply Chain Tracking
    • Commodities Tokenization
    • Real Estate Tokenization
    • Digital Certificates
    • KYC (Know Your Customer)
  • Blockchain Development Across Languages
    • Blockchain using Go(Golang)
    • Blockchain using Rust
    • Blockchain using Python
    • Blockchain using Cairo
  • Distributed Systems & Infrastructure Technology
    • Classification of Distributed Systems
    • Networked systems versus Distributed systems
    • Parallel systems vs Distributed systems
    • Distributed versus Decentralized systems
    • Processes of Distributed Systems
    • Architecture of Distributed systems
    • Infrastructure Technologies
  • Distributed System Patterns
    • Distributed Agreements Algorithms
      • HoneyBadgerBFT
    • Data Replications
    • Data Partition
    • Consistency
    • Distributed Time
    • Cluster Management
    • Communication between Nodes
    • Fault Tolerance and Resilience
      • How to design better fault tolerance systems
      • Resilience Patterns
    • Coordination systems
      • Clock synchronization
    • Security
      • Trust in distributed systems
      • Design of Principal Security
      • Security threats, policies, and mechanisms
      • Authentication and Authorizations
      • Cryptography
      • Monitoring in Security
  • Distributed System Design
    • Page 1
    • Distributed Shared Memory
    • Distributed Data Management
    • Distributed Knowledge Management
    • Distributed Ledger
  • FAQs
  • Support and Community
Powered by GitBook
On this page
  • 1. Block Structure:
  • 2. Genesis Block:
  • 3. Linking of Blocks:
  • 4. Mining and Block Creation:
  • 5. Block Validation:
  • 6. Block Size:
  • 7. Block Rewards and Fees:
  • 8. Orphan Blocks:
  1. Components of Blockchain Architecture

Blocks

PreviousDistributed LedgerNextTransaction

Last updated 8 months ago

The blockchain maintains a series of blocks. Each block is linked together with the last generated block. A block contains multiple transactions. blocks are generated using a PoW consensus algorithm called Ethash in Ethereum. Infuture it is planned to change to PoS.

Blocks are the fundamental units of a blockchain, acting as containers for transaction data and other essential information. Each block is connected to the previous one, forming a chain, hence the name "blockchain." Here's a breakdown of the key components and characteristics of blocks in a blockchain:

1. Block Structure:

  • Block Header: This part contains metadata about the block, which is critical for linking blocks and ensuring the security of the blockchain. The block header includes:

    • Previous Block Hash: A cryptographic hash of the previous block, ensuring that each block is linked to the one before it. This linkage makes the blockchain tamper-resistant, as altering one block would require altering all subsequent blocks.

    • Timestamp: The exact time when the block was created, which helps maintain the chronological order of blocks.

    • Merkle Root: A hash of all the transactions within the block, ensuring that the transactions have not been tampered with. Any change in a transaction would alter the Merkle root, alerting the network.

    • Nonce: A value used by miners during the consensus process (in Proof of Work systems) to generate a valid hash for the block.

    • Difficulty Target: The current difficulty level for mining, adjusted periodically to maintain a stable rate of block creation.

  • Block Body: This part contains the actual transaction data. The number of transactions included in a block can vary depending on the block size and the network's transaction volume.

2. Genesis Block:

  • The first block in any blockchain is called the "genesis block" or Block 0. It serves as the foundation of the entire blockchain. Unlike subsequent blocks, the genesis block does not reference a previous block because it is the first one. For instance, in Bitcoin, the genesis block was created by Satoshi Nakamoto in 2009.

3. Linking of Blocks:

  • Each block is linked to the previous one through the hash of the previous block's header. This linkage forms the "chain" in blockchain, ensuring the immutability of the data. If someone tries to alter the contents of a block, the hash will change, breaking the link to the next block and alerting the entire network.

4. Mining and Block Creation:

  • In blockchains using Proof of Work (PoW), miners compete to solve complex cryptographic puzzles to create a new block. Once a block is successfully mined, it is added to the blockchain, and the miner receives a reward. In other consensus mechanisms like Proof of Stake (PoS), block creators are chosen based on their stake in the network, not their computational power.

5. Block Validation:

  • Before a block is added to the blockchain, it undergoes a validation process, where the network nodes verify the legitimacy of the transactions and ensure that the block follows the protocol’s rules. Once validated, the block is appended to the blockchain, and the data within it is considered final.

6. Block Size:

  • The size of a block can vary depending on the blockchain protocol. For instance, Bitcoin has a block size limit of 1 MB, while other blockchains, such as Bitcoin Cash, have increased block size limits to handle more transactions per block.

7. Block Rewards and Fees:

  • Miners or validators receive rewards for successfully adding blocks to the blockchain. These rewards typically include newly minted cryptocurrency (block reward) and transaction fees paid by users who send transactions. Over time, in networks like Bitcoin, the block reward decreases through halving events, making transaction fees a more significant incentive.

8. Orphan Blocks:

  • Sometimes, two miners create blocks at the same time, causing a temporary fork in the blockchain. The network eventually selects one of the chains as the "valid" chain, and the blocks on the other chain become "orphan blocks." Orphan blocks are valid blocks, but they are not part of the longest chain and thus do not contribute to the final blockchain state.

In summary, blocks in a blockchain serve as containers for transaction data, linked together to form an immutable, secure, and decentralized ledger. Each block contributes to the integrity and security of the entire system, ensuring trust in a decentralized environment.