Author: Cook0x, mirror
The birth of the indexer
Before the introduction of Inscriptions and Ordinal protocols, Bitcoin was limited in its application scope due to the Turing incompleteness of its scripting language. limit. Fortunately, with recent advances in technology, a Turing-complete off-chain execution layer has been established through the Bitcoin Indexer. However, the data integrity and availability of existing indexers rely heavily on the indexer's honesty.
Specifically, for an off-chain execution layer, the indexer may tamper with data, causing users to obtain incorrect status. This is the issue of indexer centralization that has been discussed in the Bitcoin ecosystem for a long time. Currently, there is no perfect solution between centralization and decentralization.
What are the problems with direct decentralization?
If a decentralized indexer network is used to perform calculations, then, since the network is completely permissionless, the consensus of the existing decentralized indexer network The mechanism is vulnerable to Sybil attacks, which enable malicious indexer operators to provide incorrect status to users such as asset ownership and disposable balances. This is the establishment of a new consensus layer, which requires a strong consensus network and cannot be achieved in a short time.
Modular indexer
If you want to solve this problem, the key point is to design a Mechanism that enables users to efficiently and cost-effectively verify the validity of the state provided by the indexer. The solution proposed by Nubit is not to perform integrity checking of the entire state transition, but to simplify it to check the validity of a small number of checkpoints. The goal is to achieve data integrity and availability as long as one committee indexer is doing correct verification even if most of the committee indexers are attacked or do evil.
Nubit architecture
This architecture relies on Bitcoin as the most basic trusted data layer .
The committee indexer calculates the protocol status based on Bitcoin blocks, generates checkpoints (polynomial commitment), and publishes them to Nubit DA (data availability layer).
Nubit DA is responsible for publishing data and ensuring that checkpoint data is available.
The indexer is responsible for providing query results and corresponding proofs to users.
The lightweight indexer is run by the user, and the necessary parts of the protocol state can be queried from the indexer, using checkpoints to verify the correctness of the results. If checkpoints provided by multiple committee indexers are inconsistent, stateless computation can be leveraged to generate the correct checkpoint.
< /p>
Stateless computation
Stateless computation is a technology that allows users to perform operations without downloading and storing the entire protocol state. In this case, verify that the execution results provided by the indexer are correct.
The traditional verification method requires the user to download all status data and then re-execute the entire calculation process. Compare with the results of the indexer to verify the correctness of the results. This practice requires significant storage and computing resources.
The starting point of stateless computing technology is: even if the user does not have all the state data, as long as there is a small amount of key state data (such as the previous Checkpoint state), you can effectively verify the correctness of subsequent states without repeating the entire calculation process.
It uses cryptography technology (such as polynomial commitment, etc.) to compress all state data into a small encrypted checkpoint. Simply downloading and verifying this checkpoint is equivalent to verifying the accuracy of the entire state data.
When the checkpoints provided by multiple committee indexers are inconsistent, the user can utilize the previous checkpoint state as key input, using Stateless computation regenerates the current correct checkpoint, thus identifying honest indexers.
Through this stateless computing technology, users do not need to download and store the entire huge state data, only small checkpoints are needed Data can be used to efficiently verify the correctness of the indexer execution results, thereby achieving lightweight verifiable calculations.
Summary
Nubit in centralized indexer and Decentralized indexers provide an intermediate option, that is, by building a third-party Nubit DA layer to manage data and verify data, and ultimately still rely on Bitcoin as the most basic trusted data layer, which provides a A relatively decentralized solution without sacrificing too much security.
At the same time, Nubit recently announced its cooperation with BounceBit's collaboration combines BounceBit's BTC-restaking technology with Nubit's Bitcoin-native data availability solution. The first implementation scenario for this solution was immediately implemented.