Trond Bjorøy Profile picture
Jul 29 18 tweets 5 min read
1/ Everything you need to know about how @hathornetwork combines #blockchain and #DAG technology to scale the network, without taking hits to its security and decentralization levels, and how this architecture affects transaction finality time.

🧵

$HTR #web3
2/ To understand transaction finality time on Hathor we must first understand how transactions are confirmed.
3/ Bitcoin's main scalability problem is the fact that its transactions sit inside the blocks, and the number of txs that can fit is limited by the block size.

Hathor blocks are very simple. There are no txs inside so they are lightweight and fast to propagate into the network.
4/ Hathor txs live outside the blocks, in a DAG of txs. Whenever a new tx comes along it gets included in the DAG.

Txs are only connected to other transactions. Blocks on the other hand are connected to both blocks and transactions and they form a blockchain inside the DAG.
5/ This blockchain inside the DAG confirms the transactions. Every time a new block is found it confirms two transactions in the DAG.

Each of these transactions again confirms two previous transactions. This is repeated until the whole DAG of transactions has been confirmed.
6/ So it doesn't matter if there are 2, 10, or 10,000 transactions between two blocks. All transactions that have come in since the previous block always get confirmed when the next block arrives.
7/ Now we know that transactions are confirmed not only by blocks but also by other transactions.

When traffic is low and there aren’t many new txs coming in, they obviously don’t contribute a lot to the confirmations. The blocks do most of the work in this scenario.
8/ However, when there are many transactions coming in, they give a large contribution to confirmations.

In this case, many of the transactions will already have been confirmed before the next blocks are found, so now the blocks just further strengthen the confirmations.
9/ In a nutshell, this is how blockchain and DAG are intertwined in Hathor’s architecture and how the DAG enables faster confirmation times the higher the number of transactions.
10/ Visualization of a Hathor graph with transactions and blocks

🟥 = blocks (forming a blockchain within the DAG of txs)
🟢 = confirmed transactions
⚪️ = in-progress transactions
🟡 = unconfirmed transactions (tips)
⚫️ = Not yet propagated transactions solving proof-of-work
11/ So how does this architecture affect transaction finality times?

We will assume finality means six confirmations as this is the well-known criteria from Bitcoin and has been adopted by most of the ecosystem.
12/ A transaction is said to be confirmed when it has reached an accumulated weight of six times the hash rate of the network. Put differently, to successfully double-spend tokens, an attacker would have to put in a minimum work effort of six times the entire network’s hash rate.
13/ Following this, the maximum transaction finality time on Hathor is three minutes. This assumes six confirmations, 30 seconds block time, and no new transactions coming in at all.
14/ However, in a high-load scenario where lots of transactions are being generated, finality becomes close to instant as transactions are able to confirm themselves without having to wait for blocks.
15/ We now know that changes in actual TPS affect confirmation times. So do changes in the relative hash power between miners and transactions (remember, miners only mine blocks on Hathor, not transactions).
16/ E.g. if the miners’ hash rate increases so does the required minimum accumulated weight for confirmed transactions, and more transactions will be needed to give more accumulated weight.
17/ These are just the basics and not extensive in any way. For a deep dive into this topic and the maths behind it, check out chapter 8 of Marcelo's thesis.

bibliotecadigital.fgv.br/dspace/bitstre…
18/ PS: what's considered final is a personal choice too. If you're receiving tokens worth $50M, you might want more confirmations.

PPS: Finality is always probabilistic. The blockchain could have a reorg even after six confirmations although the chances of it would be low.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Trond Bjorøy

Trond Bjorøy Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @trondbjoroy

Nov 8, 2021
1/ Here’s a thread answering the most common questions on $HTR tokenomics. It also highlights and clarifies a couple of important elements that aren’t obvious from just reading the tokenomics document.
2/ 1b $HTR coins were premined at the genesis block in January 2020, with the following allocation:
3/ Earlier this year, 20% of the premine was burned, & an additional 18% locked up for 5 years, removing a total of 360m $HTR. The 180m vaulted tokens will be re-evaluated after 5 years & could get burned in full or partially if they aren’t deemed necessary for ecosystem growth.
Read 17 tweets
Mar 28, 2021
1/11 Opinion: Most blockchain applications available on the market today are slow, clunky, and too complex for the average non-crypto user.

Out of thousands of apps, only a few have regular users:

stateofthedapps.com/stats

$HTR
2/11 And there is only a handful of projects that people are actually paying to use (Ethereum apps in purple):

cryptofees.info
3/11 If our industry's end goal is mainstream adoption, we need to shift our messaging — focus less on tech and decentralization aspects, more on UX & value. We need to create plug-and-play blockchain solutions that people will want to pick up and use because they feel familiar.
Read 11 tweets
Feb 15, 2021
1/12 @HathorNetwork offers a unique set of features for both builders and users. Some well known ones, others not so much. Let’s look at why you might want to consider Hathor as the layer 1 solution for your project. $HTR @HTRFDT #BuildOnHathor
2/12 Easy tokenization is the obvious one. You create your own token in less than a minute, no coding required. $HTR
3/12 As opposed to ERC tokens, your custom Hathor token is a layer 1 token. It inherits the same features and security as the native token, $HTR, effectively giving your token the same level of security as the #Bitcoin $BTC blockchain.
Read 12 tweets
Feb 15, 2021
1/7 Now is probably a good time to secure your $HTR, and @HathorNetwork wallet is the only one available at the moment. While we wait for @Ledger and others to do the integration, here’s a "cold wallet" DIY.
2/7 The Hathor wallet is perfectly safe, this is just an extra layer of security for the paranoid ones while we wait for hardware options to become available.

PS: If you’re keeping your coins on the exchange you’re doing it wrong.
3/7 Download and install the Hathor wallet for your device (iOS and Android apps are available as well) hathor.network/resources/hath…
Read 7 tweets
Feb 14, 2021
1/13 I’ve seen a couple of “burn tokens, premine bad” comments on the $HTR tokenomics. Are these valid concerns that the team should listen to or baseless criticism from impatient investors hoping for a quick pump? Let’s look at facts and arguments. @HathorNetwork

📖 a thread 📖
2/13 Circulating $HTR supply at the moment is 181m with total supply at 869m (∞ due to mining rewards, like ETH). For numbers updated in real-time, see api.economics.hathor.network/status
3/13 1b $HTR coins were premined at the genesis block in January 2020, with the following allocation:
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(