delvingbitcoin

Libbitcoin for Core people

Libbitcoin for Core people

Original Postby evoskuil

Posted on: December 1, 2024 14:40 UTC

Libbitcoin's significant performance edge stems from its implementation of massive parallelism.

This contrasts with the common misunderstanding that its efficiency is due to other factors. Both Libbitcoin and Core utilize a concept that, while named differently—Libbitcoin as "milestone" and Core with "assume valid"—fundamentally serves the same purpose from both a logical and security perspective. However, Libbitcoin distinguishes itself by eschewing unnecessary checks when operating under its milestone system.

In contrast, Bitcoin Core's approach necessitates the construction of a UTXO (Unspent Transaction Output) store even when operating under the "assume valid" mode. This process requires a specific order for building the UTXO set, which inherently limits the potential for parallel processing. Moreover, during this process, Bitcoin Core conducts spend checks that are obligatory due to the architecture of the UTXO set, despite these checks being deemed unnecessary in certain contexts. This requirement not only imposes additional computational overhead but also significantly restricts the ability to leverage parallelism to enhance performance.