BLOG

ブログ

BLOG

Ethereum: Where are blocks stored in the blockchain?

Ethereum: Understanding Where Blocks Are Stored

When it comes to maintaining an open and transparent blockchain, one of the most important components is storing blocks containing transaction history. But where exactly are these blocks stored on the Ethereum network? In this article, we’ll dive into the details of how the Ethereum smart contract platform stores its blocks.

Block Storage Mechanism

In a blockchain, each block contains a record of all the transactions that have occurred since the first block was created. This is done by linking multiple “blocks,” with each new block referencing the previous one and containing information about the transaction from which it was created. To store this data, Ethereum uses an immutable storage system that ensures that once the data is stored, it cannot be changed or deleted.

The process involves creating a “block” on the Ethereum network by solving a complex mathematical puzzle using a combination of cryptographic algorithms and the Elliptic Curve Digital Signature Algorithm (ECDSA). This process creates a unique digital fingerprint for each block, known as its hash. The first few blocks are stored in a special storage called the
State Channel

.

The State Channel is a public ledger that contains a record of all transactions on the Ethereum network. However, once a new block is created and linked to existing blocks via a cryptographic puzzle, it becomes part of the main state blockchain, not stored separately in individual blocks like the state channel.

Storing Individual Blocks

However, individual
blocks are still stored separately from the rest of the chain. This is achieved by using a
mempool, which acts as a queue for storing unconfirmed transactions. The mempool can hold multiple blocks at any given time and stores them in memory before they are added to the main blockchain.

The blocks themselves remain on the Ethereum network, but are not stored separately like individual documents. Instead, they exist within the larger context of the entire blockchain.

Storage Options

Over the years, several proposals have emerged for alternative storage solutions that could potentially allow for greater flexibility in storing blocks and smart contracts. Some of these include:

  • InterPlanetary File System (IPFS): An open source, decentralized file system that can store data off-chain.
  • Distributed Hash Table (DHT)

    Ethereum: Where are the blocks in the blockchain stored?

    : A distributed hash table that allows multiple nodes to store data.

  • Blockchain as a Service (BaaS): Commercial providers like Binance Smart Chain and Polkadot aim to make it easier for developers to deploy and use blockchain applications.

However, none of these solutions have yet been widely adopted or proven viable in practice.

Conclusion

In short, Ethereum blocks are stored on the main blockchain as part of a state channel. Individual blocks remain on the network, but are not stored separately as documents. The use of a mempool provides flexibility for storing unconfirmed transactions and is a fundamental part of the overall architecture.

As the Ethereum ecosystem continues to evolve, it will likely be interesting to see how different storage solutions are adopted or alternative architectures emerge that address scalability, security, and usability issues.

Iota Iota Circulating Supply Computer