Home Coins Hathor (HTR) Hathor Network and the double-spending resolution | by Marcelo Salhab Brogliato |...

Hathor Network and the double-spending resolution | by Marcelo Salhab Brogliato | Hathor Network

- Advertisement - IQ Option CPA

AliExpress WW

Marcelo Salhab Brogliato

One of the most challenging parts of a crypto-platform is how it resolves double-spending, i.e., when two or more transactions are spending the same “money” — or, being more specific, spending the same output.

Blockchain architecture resolves double-spendings just choosing the transaction in the longest chain as the winner. The remaining transactions in the double-spending are voided.

Hathor resolves double-spendings in a way similar to Bitcoin but adapted to a DAG architecture. Hathor chooses the transaction that has the highest accumulated weight as the winner. The remaining transactions are called conflict-voided (and both their sub-dag of verifications and their sub-tree of funds are voided as well and called ancestor-voided).

The accumulated weight of a transaction A is a measure of how much proof-of-work has been done by other transactions that verify A both directly and indirectly (i.e., its descendants in the DAG of verifications). The higher the accumulated weight, the harder it becomes to void the transaction.

Tree of funds where an edge from A to B means that A spends an output of B. Red squares are blocks; green ovals are genesis; white ovals are valid transactions; and gray ovals are voided transactions. Gray ovals with bold border are conflict-voided, while the others are ancestor-voided.

Looking into the tree of funds on the left, both transactions 41b0 and d99a spend the same output of the block 6e44, i.e., they are a double-spending.

As 41b0’s accumulated weight is higher than d99a’s, the transaction d99a is conflict-voided. All transactions in its descendant tree are marked as ancestor-voided (9be1, 1b3c, 6c51, and a362).

But, why would transaction 2ec9 be marked as ancestor-voided? Looking into the DAG of verifications below, we notice that 2ec9 verifies 426a. Back to the tree of funds, 426a spends an output of 3fbf, which is voided due to a double-spending with 5be4.

In other words, a transaction is valid if, and only if, all its ancestors in both the DAG of verifications and the tree of funds are valid. Otherwise, it is voided.

Thanks for reading and let me know if you have any questions or have a suggestion for the next article.

For further information about Hathor Network, see https://hathor.network/.

AliExpress WW

Source link

- Advertisement - IQ Option CPA
Mr Bitcointe
Mr Bitcointehttps://www.bitcointe.com/
“Fact You Need To Know About Cryptocurrency - The first Bitcoin purchase was for pizza.” ― Mohsin Jameel
468FansLike
76FollowersFollow
4,567FollowersFollow
5,261FollowersFollow
1,558FollowersFollow
2,230SubscribersSubscribe
USD - United States Dollar
EUR
1.21
GBP
1.40
CHF
1.10
NOK
0.12
JPY
0.01
CAD
0.79
AUD
0.78

Most Popular

bitcoin
Bitcoin (BTC) $ 47,451.00
ethereum
Ethereum (ETH) $ 1,523.13
tether
Tether (USDT) $ 0.999496
bitcoin-cash
Bitcoin Cash (BCH) $ 503.82
litecoin
Litecoin (LTC) $ 178.57
eos
EOS (EOS) $ 3.71
okb
OKB (OKB) $ 16.92
tezos
Tezos (XTZ) $ 3.69
leo-token
LEO Token (LEO) $ 1.97
cardano
Cardano (ADA) $ 1.22
monero
Monero (XMR) $ 211.08
stellar
Stellar (XLM) $ 0.397163
chainlink
Chainlink (LINK) $ 26.60
huobi-token
Huobi Token (HT) $ 16.45
tron
TRON (TRX) $ 0.046058
usd-coin
USD Coin (USDC) $ 0.998293
dash
Dash (DASH) $ 218.18
neo
NEO (NEO) $ 39.01
iota
IOTA (MIOTA) $ 1.14
nem
NEM (XEM) $ 0.511746
zcash
Zcash (ZEC) $ 123.07
maker
Maker (MKR) $ 2,086.28
paxos-standard
Paxos Standard (PAX) $ 0.997606
ethereum-classic
Ethereum Classic (ETC) $ 11.14
vechain
VeChain (VET) $ 0.041213
true-usd
TrueUSD (TUSD) $ 1.00
ftx-token
FTX Token (FTT) $ 28.72
kucoin-shares
KuCoin Token (KCS) $ 4.92
waves
Waves (WAVES) $ 9.72