Cardano Tech Lead Packs The Entire Bitcoin Blockchain Into One Block

2024-6-3 13:00

The Technical Director at the Cardano Foundation, Matthias Benkort (also known as @KtorZ), has successfully encapsulated the entire Bitcoin blockchain within a single block on the Cardano blockchain. This announcement, made via X (formerly Twitter), has sent ripples through the blockchain community, highlighting the potential for advanced data management and interoperability between blockchains.

A Breakthrough For Cardano And Blockchain Technology

Benkort’s revelation came with the release of a new open-source library on GitHub, titled “Merkle Patricia Forestry.” The library introduces a set of both on-chain and off-chain tools designed to work with Merkle Patricia Tries on Cardano. As described in the release documentation, a Merkle Patricia Trie is “a persistent & authenticated data structure to map between arbitrary keys and values.” Essentially, it functions as a highly efficient and secure hashmap.

The documentation elaborates on the structure, stating, “Items are represented in a space-optimized trie (a.k.a prefix tree) of radix 16. The hash digest of their keys provides the path to values in the trie.” This approach offers numerous use cases, such as maintaining large on-chain registries (e.g., domains), or providing vast oracled datasets of intrinsic data (e.g., a map of delegators/delegatees) or extrinsic data (e.g., GitHub data related to an ecosystem of projects). It is particularly well-suited for long-running datasets that grow at a slow rate, such as a Proof-of-Work (PoW) blockchain.

Key features of the Merkle Patricia Forestry library include rapid membership, insertion, and deletion of any key/value item in a large store, facilitated by a root hash digest (32 bytes) and a succinct proof (<1KB). The library incorporates several optimizations inspired by Ethereum’s Modified Merkle Patricia Trie (MPT), but introduces a novel approach for organizing nodes as tiny Sparse Merkle Trees. This innovation results in much smaller proof sizes and is the basis for the library’s name: Merkle Patricia Forestry.

Benkort explained the performance trade-offs, noting that the optimization sacrifices some memory and CPU execution units to achieve smaller proof sizes. Despite this, the library strikes a good balance between proof size, memory usage, and CPU efficiency, as detailed in the performance tables included in the documentation. These tables summarize the proof size, memory units, and CPU units required for various trie sizes, highlighting the efficiency of the library in different scenarios.

Detailed Explanation And Demonstration

In a series of detailed posts on X, Cardano Foundation’s Benkort provided further insights into the implementation and capabilities of the library. He explained that the library consists of two parts: one implemented in Aiken for specific utilities to smart contracts, and another in Node.js for off-chain operations. This comprehensive implementation of modified Merkle Patricia Tries, with a unique twist, is what Benkort calls ‘Merkle Patricia Forestry.’

“Fundamentally, this is an authenticated data structure for mapping arbitrary keys to arbitrary values,” Benkort stated. “Yet, it is done in such a way that it is possible to perform some operations from only a small hash and a succinct proof, without the need to carry the entire data structure.”

For those familiar with blockchain technology, Merkle Trees are a similar, albeit simpler structure, primarily used for representing lists of items and verifying their membership using a root hash. However, Merkle Patricia Tries (MPTs) extend this functionality, allowing not only membership verification but also the insertion and deletion of key/value pairs. Ethereum employs MPTs for its blockchain state and transaction storage, enabling light clients to query balances without storing the entire blockchain.

One significant issue with traditional MPTs is the large size of proofs, which can span multiple kilobytes for extensive data stores. This isn’t as problematic for off-chain operations, but on-chain, every byte is precious. Benkort’s implementation addresses this by using tiny Sparse Merkle Trees of 16 items at each level, effectively creating trees within tries. This structure drastically reduces the size of proofs, trading off some computational steps for Cardano’s efficiency gains.

Benkort demonstrated this capability through a recent transaction that spent a UTxO containing the root hash of a Merkle Patricia Forestry representing the entire Bitcoin block header hashes, compressed into just 32 bytes. The transaction proved the ability to continue the chain by inserting a new block into the trie, maintaining an authenticated chain of over 850,000 blocks with minimal data overhead.

“The transaction I just linked is doing something quite unexpected,” Benkort explained. “It spends a UTxO that contains the root hash of a Merkle Patricia Forestry representing the entire Bitcoin block header hashes, mapped to their transactions. That’s about 850,000 blocks, compressed in 32 bytes.”

To spend this UTxO, a proof must be provided on-chain to show the continuation of the chain by inserting a new block in the trie. The updated root hash stored on-chain must represent the previous chain plus one block. The entire validator for this operation fits into just 26 lines of Cardano’s Aiken.

Future Implications And Use Cases

Benkort highlighted the potential applications of this technology, ranging from trustless bridges to arbitrarily large key/value stores managed fully on-chain. “Imagine the realm of possibilities with such large datasets,” he suggested. “A domains registry? A feed of financial market data? GitHub stats? I do see a world where institutions or committees publish large datasets in the form of a simple root hash on-chain, effectively serving as oracles for a variety of smart contracts down the line.”

Benkort concluded by reflecting on the journey of this project, which began as a side project at the end of last year. “It feels good to finally release this,” he said. “It was originally something I started at the end of last year, a bit as a side project. Given the many conversations about this lately, I thought I’d resurrect and properly package that code. Open sourcing for the win.”

At press time, Cardano (ADA) traded at $0.455.

Similar to Notcoin - Blum - Airdrops In 2024

origin »

Cardano (ADA) на Currencies.ru

$ 0 (+0.00%)
Объем 24H $0
Изменеия 24h: 0.00 %, 7d: 0.00 %
Cегодня L: $0 - H: $0.576
Капитализация $0 Rank 99999
Доступно / Всего 0 ADA

cardano blockchain block entire bitcoin known ktorz

cardano blockchain → Результатов: 126


Фото:

Cardano Partners With Singapore’s Blockchain Institute: ADA Turns Bullish

Emurgo, one of the founding entities of the Cardano blockchain, has officially announced a partnership with the Institute of Blockchain Singapore (IBS) today. This strategic alliance, revealed via X (formerly Twitter), accentuates the rising importance of blockchain education on a global scale, while also highlighting Cardano’s commitment to the same. Cardano Expands Its Presence In […]

2023-10-31 22:00


EMURGO to develop new dApp tool stack for Cardano blockchain

EMURGO, the official commercial arm of Cardano and the Cardano Foundation, overseer of the Cardano blockchain, announced the launch of a project that will see the two organizations combine efforts and resources to foster the development of a community-generated and maintained tool stack to support the Cardano ecosystem and accelerate decentralized application development.

2022-1-19 19:19


Фото:

Plutuswap Poised To Become The Next Gen-Dex On The Cardano Ecosystem

The Cardano network is set to see a big step forward as it prepares to update its blockchain through the proposed alonzo hard fork which will enable smart contract functionality. When wholly deployed, the Cardano Blockchain will be able to support systematic codes to construct and deploy “smart contracts,” that enable developers to build Dapps […]

2021-9-10 00:34


IOHK Launches A $250k ‘Decentralized Treasury’ Fund To Boost Cardano Blockchain Development

IOHK, Input Output Hong Kong, a blockchain research and development firm building on Cardano, announced the launch of its first public fund, Project Catalyst, on Thursday. The public fund launch features a $250,000 grant program, paid out in ADA, to incentivize developers to build solutions on the Cardano blockchain.

2020-9-17 15:29


Фото:

Cardano (ADA) is looking to challenge subscription industry, launches African initiative

Cardano (ADA), an ambitious blockchain project developed by IOHK, is looking to challenge the subscription industry with its Ouroboros protocol. The Cardano Foundation has also announced that it will be utilizing the newly formed South African National Blockchain Alliance (SANBA) to further explore ways to use blockchain technology in the region.

2020-4-29 00:30


Cardano Founder Speaks On The Future Of Byron And Shelley Upgrades Of The Blockchain

Over the past month and a half, the Cardano community has welcomed a number of developments following a successful Ouroboros hard fork on the blockchain. In a 24-minute update, Hoskinson speaks on the upcoming upgrades on the Cardano in what has become subsequent for the pubic as they wait for Cardano 2.0, or the Shelley […]

2020-2-26 16:22


IOHK introduces ‘Shelley’ era functionality to the Cardano blockchain

IOHK, a blockchain engineering company and Cardano developer, recently introduced the ‘Shelley Era’ to the Cardano blockchain platform. Over 300 stakepools are already registered and operating on Cardano’s advanced proof of stake-based network and network participants are now able to delegate their stake of Cardano’s ADA cryptocurrency and earn real financial rewards.

2019-12-17 16:51


Seiza Cardano (ADA) Blockchain Explorer and Crypto Network Stats

Discover Seiza—the new ADA blockchain explorer that makes it easy for users to track transactions on the Cardano blockchain. Announcing the new development, EMURGO—a part of Cardano’s team that is responsible for developing, supporting, and incubating commercial ventures, said in a tweet: “We are excited to unveil ‘Seiza,’ an all-new official Cardano Blockchain Explorer developed […]

2019-5-23 07:14