CONNECT WITH US
Web3 & Blockchain

Web3 & Blockchain

Why a bug that could have threatened XRP's 100 billion supply cap stayed hidden for years

CoinDesk logo

Published on

Add as a preferred source on Google
Why a bug that could have threatened XRP's 100 billion supply cap stayed hidden for years

A bug that could have let an attacker print new XRP (XRP) out of nothing sat in the XRP Ledger for more than a decade without anyone noticing because normal user activity never came close to triggering it, according to XRP Ledger Foundation.

The 11-year-old bug mattered because it threatened the core rule XRP holders rely on: that the total supply can never exceed the 100 billion coins created at the blockchain’s debut in 2012. It was uncovered Sept. 22 by researcher Cayden Liao and Veria AI and reported internally.

No damage was done, according to RippleX, which shipped the fix. No new XRP was created and about 99.986 billion XRP remain in circulation today, the foundation said.

The XRP Ledger (XRPL) is an open-source, decentralized layer-1 blockchain. Its native token, XRP, was built so that no new tokens can ever be minted. The coin is primarily used to pay transaction fees and bridge currency trades on the ledger's built-in decentralized exchange (DEX).

However, the bug, believed to have existed since 2015, provided a way around that, at least in theory.

The bug stemmed from a vulnerability known as an “integer overflow,” which, like an old arcade game’s score counter, resets to zero every time it hits its maximum.

In the XRP Ledger case, the flaw meant that once a transaction size exceeded the system's maximum allowed numerical limit, the value wrapped around to a very small number. That bypassed standard fund checks, crediting sellers their full XRP amounts while charging buyers next to nothing, effectively minting the difference out of thin air and artificially inflating the total XRP supply.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.