Merge-Mined Parachains
How Quai Network can support custom blockchains.
A merge-mined parachain is a distinct, non-Quai blockchain that uses merged mining with Quai to bootstrap hash power and liveliness. Merge-mined parachains are distinct from merge-mined sidechains in that they not only inherit security from Quai, but are also hash linked to and interoperable with the canonical network.
Merge-mined parachains are aware of the Quai state tree due to the inclusion of an empty parachain data field in all Quai blocks. This allows for the creation of hash linked references, which enables the transfer of state between Quai Network and merge-mined parachains.
Parachains also experience atomic block progression and rollbacks. Atomicity is achieved through the implementation of an aging period on the protocol’s entry/exit contract. This aging period will mandate some number of blocks to be produced before the exit of state to a parachain. Any Quai Network rollback will also cause parachain rollbacks, however parachain rollbacks do not cause Quai rollbacks.
Why Parachains?
The architecture of Quai Network and its merge-mined parachains creates a single, homogenous set of chains with a single token, and single value that can be applied across all contexts. Applications that are likely to need their own blockchain to function smoothly, such as social networks and storage services, can utilize an independent, dedicated parachain, while deriving security and state transitions from Quai.
Functionally, merge-mined parachains have the capability to resolve the existing heterogeneity of many disparate blockchains with differing user experiences, tokens, and architectures. A blockchain-based data storage solution, for example, could utilize a parachain to store data without bloating the Quai Network state, and still utilize Quai for value transfer and settlement, creating a seamless user experience across all blockchain-based services. Parachains also assist in maintaining the sustainability of Proof-of-Work. All incentives provided by parachains to attract miners will offset fees that would have been required to be generated by Quai Network and its participants.
Bootstrapping Security
Parachains are able to bootstrap hash power by merged mining with Quai Network. Quai block headers include an empty data field for parachains to utilize, allowing for the creation of hash linked references between Quai blockchains and merge-mined parachains.
Parachains are able to leverage the existing and more powerful hash rate of any Quai blockchain by using a Quai blockchain’s header as auxiliary data in parachain blocks and including a valid proof-of-work for a Quai blockchain in the header of a parachain block. Merged mining with Quai makes it more difficult for an attacker to carry out a 51% attack on a parachain, as they would also need to control 51% of the hash rate of the Quai blockchain.
The hash linked reference further ensures that if an attacker wants to alter the parachain’s history (or if the parachain has an internal issue), they would have to first alter Quai Network’s history.
Competitive Liveliness
Merge-mined parachains exist in a competitive environment where liveliness is determined by Quai miners. Parachains will receive liveliness based on how powerfully they are able to incentivize miners to merge-mine that specific parachain. This does not limit the number of parachains that can exist, only the degree of liveliness that any given parachain can have.
If only a small subset of Quai miners are also merge-mining a certain parachain, that parachain will see liveliness only when that set of Quai miners successfully mine a block. If a majority of Quai miners are also merge-mining a certain parachain however, that parachain will see high degree of liveliness, as the majority of blocks can be expected to also be valid blocks in that parachain.
This creates a highly competitive environment for parachains, where liveliness is determined by market reaction to incentives. Parachains able to offer the most value to Quai miners will receive the highest liveliness.
Was this page helpful?