Bitcoin: How is the Bitcoin Public Ledger stored?


How Bitcoin’s public book is stored: Understand Hashgraph’s architecture

As it embarks on the creation of a functional replica of the Bitcoin protocol, understanding the underlying architecture and how Bitcoin’s public book (BLL) is stored is crucial. In this article, we will deepen the details of how the BLL of Bitcoin is maintained, focusing on the Hashgraph consensus mechanism.

What is Bitcoin’s largest book?

The largest public book in Bitcoin is a decentralized and public book that records all Bitcoin transactions from the Genesis block in 2009. It serves as a distributed database, ensuring that each transaction is verified and store throughout the network. The BLL contains a permanent record of all Bitcoin transactions, which allows safe and transparent monitoring of the property and movement of assets.

The hashgraph consensus mechanism

The Bitcoin Hashgraph Mechanism is a unique approach to achieve consensus between nodes in the block chain. Unlike the traditional work test protocols (POW) or Smade Test (POS), HASHGRAPh is based on a distributed network of validators to create a new block and update the main book.

How Bitcoin’s public book is stored

The BLL is stored in a data structure called directory
, consisting of two main components:

  • Index : A binary search tree (BST) that index all transactions in the directory, which allows efficient recovery and the manipulation of specific blocks.

  • Block : The real block containing all transactions in the Board of Directors.

The index is maintained by means of a directory node
, which contains pointers for each transaction in the directory. Each transaction is represented as a hash of its inputs (for example, transaction id) and outputs (for example, addresses).

How transactions are stored

BLL transactions follow a specific format:

  • Transaction header : The heading block contains metadata such as the transaction ID, the sender’s address, the receiver’s address, the time brand and more.

  • Transaction data : Real transaction data (for example, inputs, outputs).

  • Transaction signature

    : A digital signature generated by the node using a public key.

The transaction header is linked to its corresponding block using a reference hash, creating a block chain that connects each new block to the previous one in the block chain.

Hashgraph Consensus

Bitcoin: How is the Bitcoin Public Ledger stored?

In Hashgraph’s consensus mechanism, every validator (node) creates and updates the Board of Directors by:

  • Generation of a new block : The validator generates a new block that contains all the transactions of its local network.

  • Sign the block : Each transaction is signed with the private key of the validator.

  • Sending the block to other nodes : The validator sends the block signed to other nodes on the network.

  • Verify the block : Other nodes verify the block verifying its consistency with the index and ensuring that all transactions are correctly linked.

Once a consensus is reached, each node updates its local directory, creating a permanent record of the block chain.

Conclusion

The Bitcoin public book storage mechanism is based on Hashgraph’s consensus algorithm to maintain a decentralized and safe network. By understanding how transactions in the BLL and the structure of the index/ block are stored, you can obtain information about the architecture of the Bitcoin protocol. For your academic project, creating a functional replica will require a deep immersion in underlying technology and its complexities.

Recommendations for your project

  • Family with the Bitcoin protocol and its various components.

  • Study Hashgraph’s consensus mechanism in detail, focusing on nodes communication and data storage.

  • Implement a basic directory structure to simulate the BLL index and block storage.

Ethereum Deploying Contract


Leave a Reply

Your email address will not be published. Required fields are marked *