What is a directed acyclic graph in cryptocurrency? How does DAG work?

HomeCrypto News

What is a directed acyclic graph in cryptocurrency? How does DAG work?

A simple guide to explain what a directed acyclic graph (DAG) is in cryptocurrenc


A simple guide to explain what a directed acyclic graph (DAG) is in cryptocurrencies, how it is used and how it works.

DAG vs. Blockchain

Blockchains and DAGs both record transactions on a distributed ledger, albeit through different means. 

Below is a quick comparison of the two in terms of benefits and drawbacks:

Pros of DAG

  • Suited for microtransactions and high volumes of transactions
  • Eliminates the need for mining equipment
  • Fees may be reduced significantly
  • Lower energy consumption

Cons of DAG

  • Vulnerable to attacks due to low volume of transactions 
  • Still in its infancy; has not yet sustained high levels of decentralization 

Pros of blockchain

  • Well-established and widely-used by cryptocurrencies like Bitcoin and Ethereum
  • Transparent and unalterable, highly-secure
  • Cost-effective for high-value transactions

Cons of blockchain

  • Demanding storage and network bandwidth requirements
  • Large amounts of power consumed
  • High transaction fees

At the end of the day, deciding on which model to use will depend on one’s business objectives. As we discussed, each model has its strengths and weaknesses, and either one can be more applicable depending on your requirements.

What is the role of DAG in blockchain?

DAG can be seen as a viable alternative to blockchain, although it still requires further fine-tuning. The DAG model seeks to improve common issues with blockchain technology such as cost, speed and scalability. 

Technically, both technologies record transactions on a digital ledger and work towards the same goal. The differentiating factor between the two of them is mainly the structure each model uses to store data.

What crypto uses DAG?

It used to be unimaginable to think of cryptocurrencies without thinking of blockchain. With the DAG model, however, several cryptocurrencies have already been built using this technology. 

Some examples are Obyte, IOTA, and Nano, to name a few. Although still relatively new, the DAG framework shows great potential. As mentioned, some projects have already used it successfully. The most well-known ones are:

Obyte

Obyte or ByteBall is a cryptocurrency that is completely independent of the blockchain, having implemented the DAG framework. However, Obyte transactions still have a fee. 

This is because the Obyte network utilizes a validator system that allows for double-checking of transactions. It makes use of a consensus algorithm that relies on witnesses. These witnesses are trusted and reputable users who act as validators. 

Obyte also supports untraceable transactions, as well as unreachable contracts. 

IOTA

Internet of Things Applications, or IOTA, implemented its ‘blockless blockchain’ network in 2016. The idea behind IOTA is that all users effectively become miners. To validate one transaction, for example, a user has to verify two transactions. 

IOTA uses a network composed of nodes and tangles, or groups of nodes, that serve to make the validation process faster and more efficient. 

All users contribute a small amount of power for the network’s maintenance, and everybody participates in executing consensus as well. This allows the network to be highly decentralized and scalable at the same time.

Transactions have near-zero fees; hence, IOTA is considered a cost-effective alternative cryptocurrency for micro-payments. 

Nano

Nano is also a cryptocurrency operating on the DAG system. Nano has independent blockchains connected by nodes and is called block-lattice technology. Technically, it’s a mix of DAG and blockchain.

Every user has an individual wallet and a blockchain. Only the user can execute changes on their own wallet/blockchain. Transactions are completed once the sender and receiver both perform operations on their respective blockchains. 

Nano offers zero transaction fees, as well as high transaction speeds to its users.

What are DAGs used for?

The DAG model seeks to address two perceived weaknesses of blockchain technology, namely, decentralization and scalability. It seeks to improve security and usability as well. 

How so?

  • On the Bitcoin blockchain or Ethereum platform, miners can only create one block at a time. Hence, new transactions can only be validated when the previous one is completed. The DAG model eliminates these blocks, adding transactions directly to the blockchain. 

With the elimination of blocks, the DAG model won’t require mining. This means less power is required to support the network. DAGs also have several advantages, such as:

  • High transaction speeds unencumbered by block creation
  • No miners mean no transaction fees as well
  • Less energy consumption and environmental benefits compared to mining

Currently, though, the use of DAGs in crypto is still in the early stages. Unlike blockchains, they are still not fully decentralized. As such, they are primarily used for getting networks started, and not yet as a system that can be used to build a stable network.

How…



cointelegraph.com