BlockDAG Docs
Academy Docs
Academy Docs
  • BlockDAG Crypto Mining: Expectations and Preparation Guide
  • BlockDAG Primordial Testnet: Node Operator's Onboarding Guide
  • ASIC Mining Setup Guide: From Unboxing to Mining
  • Introduction to Crypto Mining
  • BlockDAG Consensus
Powered by GitBook
On this page

Was this helpful?

BlockDAG Consensus

PreviousIntroduction to Crypto Mining

Last updated 11 days ago

Was this helpful?

BlockDAG Consensus

1. What is Consensus?

  • The process of reaching agreement in a decentralized network.

  • Ensures validity and security of transactions on the blockchain.

  • Prevents double-spending and attempts to alter the block records.

2. What is DAG?

A Directed Acyclic Graph (DAG) is a particular data structure connecting various information elements.

magine a DAG protocol as a sequence of nodes and edges connecting them. The edges are unidirectional, implying that information cannot move in opposite directions.

Any information in the DAG cannot move back to its source if we follow the graph’s direction.

BlockDAG is an instance of a distributed ledger technology that uses DAGs to create an asynchronous Byzantine Fault-Tolerant consensus.

3. How BlockDAG Achieves Consensus

A DAG (Directed Acyclic Graph) based weighted voting mechanism on the BlockDAG blockchain leverages the graph structure of a DAG to facilitate consensus and improve performance by assigning weights to nodes or transactions.

Instead of traditional block-based voting, DAG-based consensus allows nodes to vote on transactions, and these votes are recorded as edges in the DAG.

Here's a breakdown of how this mechanism works:

4. DAG STRUCTURE AND CONSENSUS:

· DAG as a Ledger:

Instead of a linear chain of blocks, a DAG represents the transaction history as a graph where transactions are nodes and dependencies (e.g., a transaction referencing a previous one) are edges.

· Asynchronous Consensus:

DAG-based consensus relies on asynchronous voting, meaning nodes don't wait for all other nodes to agree before confirming a transaction.

· No Need for a Leader:

In some DAG-based consensus mechanisms, there's no single leader node. Instead, nodes interact and agree on the order of transactions.

  1. WEIGHTED VOTING:

· Assigning Weights:

Nodes or transactions can be assigned weights based on various factors, such as the amount of stake a node holds, their reputation, or the latency they experience with other nodes.

· Impact on Consensus:

Nodes with higher weights may have a greater influence on the outcome of voting or the selection of a transaction.

· Optimizing Performance:

Weighted voting can improve consensus latency (time to finalize a transaction) and throughput (number of transactions processed per second).

6. ADVANTAGES OF DAG-BASED WEIGHTED VOTING:

· Increased Scalability:

DAGs can offer higher transaction throughput and lower consensus latency than traditional blockchain approaches.

· Reduced Latency:

By allowing asynchronous consensus and potentially using weighted voting, DAGs can achieve faster transaction finality.

· Improved Security:

The distributed and decentralized nature of DAGs can enhance security and resilience against attacks.

· More Flexible and Adaptive:

Weighted voting mechanisms can be adapted to different use cases and network conditions.