/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ 56% complete


struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
struct group_info *groups_alloc(int gidsetsize){
struct group_info *group_info;
int nblocks;
int i;


nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK;
/* Make sure we always allocate at least one indirect block pointer */
nblocks = nblocks ? : 1;
group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER);
if (!group_info)
return NULL;
group_info->ngroups = gidsetsize;
group_info->nblocks = nblocks;
atomic_set(&group_info->usage, 1);


if (gidsetsize <= NGROUPS_SMALL)
group_info->blocks[0] = group_info->small_block;
else {
for (i = 0; i < nblocks; i++) {
gid_t *b;
b = (void *)__get_free_page(GFP_USER);
if (!b)
goto out_undo_partial_alloc;
group_info->blocks[i] = b;
}
}
return group_info;

EXPORT_SYMBOL(groups_alloc);


void groups_free(struct group_info *group_info)
{
if (group_info->blocks[0] != group_info->small_block) {
int i;
for (i = 0; i < group_info->nblocks; i++)
free_page((unsigned long)group_info->blocks[i]);
}
kfree(group_info);
}


EXPORT_SYMB|

/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ 56% complete


struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
struct group_info *groups_alloc(int gidsetsize){
struct group_info *group_info;
int nblocks;
int i;


nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK;
/* Make sure we always allocate at least one indirect block pointer */
nblocks = nblocks ? : 1;
group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER);
if (!group_info)
return NULL;
group_info->ngroups = gidsetsize;
group_info->nblocks = nblocks;
atomic_set(&group_info->usage, 1);


if (gidsetsize <= NGROUPS_SMALL)
group_info->blocks[0] = group_info->small_block;
else {
for (i = 0; i < nblocks; i++) {
gid_t *b;
b = (void *)__get_free_page(GFP_USER);
if (!b)
goto out_undo_partial_alloc;
group_info->blocks[i] = b;
}
}
return group_info;

EXPORT_SYMBOL(groups_alloc);


void groups_free(struct group_info *group_info)
{
if (group_info->blocks[0] != group_info->small_block) {
int i;
for (i = 0; i < group_info->nblocks; i++)
free_page((unsigned long)group_info->blocks[i]);
}
kfree(group_info);
}


EXPORT_SYMB|

0%_LOADING

/ launching_quai_network

/ sequence_initiated

/

loading...

REBUILDING CURRENCY
a new currency
a new financial system
a new world
/ launching_quai_network / sequence_initiated / scroll_to_commence_build
> Quai Network is a set of EVM-compatible blockchains that achieves 50k+ TPS without compromising decentralization.
mergedmining
While quai is one of the few projects exploring the potentials of merged mining, the technology has a long and storied history, originating from Satoshi himself.

History and origins of merged mining

The idea of merged mining was first conceived by the anonymous Satoshi Nakamoto in December 2010. In a discussion of a project attempting to create a decentralized DNS system called “BitDNS,” Satoshi described the theoretical possibility that a blockchain could be a “completely separate network and separate block chain, yet share CPU power with Bitcoin.” This would allow the theoretical chain to inherit security and decentralization from Bitcoin without requiring dedicated miners.

Satoshi’s proposal came to fruition through Namecoin, the eventual evolution of BitDNS. Namecoin, which launched in April 2011, utilized merged mining with Bitcoin by creating a combined Bitcoin/Namecoin block header: the same tactic suggested by Satoshi months before.

While Namecoin’s launch was a success, the project was merely a development upon Bitcoin’s existing ecosystem, and thus, its use of merged mining was limited.

In 2014, the creator of Litecoin, Charlie Lee, performed a Reddit AMA to make the case for merged mining between Litecoin and Dogecoin.

What is merged mining?

So merged mining has been around for a while — but what actually is it? At a high level, merged mining is simply the practice of securing multiple blockchains with one miner. This can be done when both blockchains utilize the same hashing algorithm.

In the case of Namecoin, both Namecoin and Bitcoin use the SHA-256 hashing algorithm. Thus, miners are able to scan the hashing algorithm for a hit on either blockchain. Because Bitcoin has a much higher difficulty than Namecoin, miners that are merge mining Bitcoin and Namecoin are much more likely to find a Namecoin hit than a Bitcoin hit.

Merge mining is not limited to the SHA-256 hashing algorithm. Projects like Quai Network are developing merge mining solutions using other algorithms like Blake3. Instead of allowing a more popular chain’s miners to simultaneously merge mine Quai, internal merged mining is used in a hierarchical structure to maintain the same security across all chains within the network.

Why Merged mining?

Merged mining is a cool concept, but what benefits does it actually provide? Merged mining has the potential to provide blockchains with a long list of benefits, but few have yet to be fully realized.

First, blockchains are able to receive additional hashpower (and thus security and decentralization) that they may not otherwise be able to achieve. If a blockchain is launched that requires dedicated miners, they may initially struggle to achieve 100 unique miners across the globe. This blockchain would be extremely weak, vulnerable to a 51% attack at any time. In contrast, if a blockchain launched with the capability to be merge mined with an already-secure chain, they could inherit a fair percent of the parent chain’s liveliness to provide security and decentralization in the early days.

Second, when combined with the concept of modularity, merge mining can provide increased TPS and throughput without necessitating L2 solutions. Quai Network, for example, merge mines three “tiers” of chains: Prime, Region, and Zone. The singular Prime chain is mined by all miners, while miners are able to choose which of the 3 Region chains and the 9 Zone chains they wish to mine. This hierarchical structure allows for 13 unique chains to all have the same security as if all miners on the network were mining each of these chains.

merged mining in quai network

Quai Network believes merge mining technologies have the potential to solve the scalability issues that all blockchains are experiencing today. By combining merge mining with a hierarchical structure of chains, Quai Network is able to achieve over 250x the TPS of Ethereum with the same security, decentralization, and smart contract capabilities.

A visualization of Quai’s hierarchical, merge mined structure of blockchains. Upon the launch of the network, there will be a single Prime chain, 3 Region chains, and 9 Zone chains.

Conclusion

While blockchain veterans like Satoshi and Charlie Lee touted the concept of merged mining, very few projects have utilized the technology to its full potential. Quai Network is the first project to combine the benefits of merged mining with the scalability of multi-chain solutions.

By bringing merge mining to the masses, Quai Network is hoping to create a blockchain that can scale to meet the demanding needs of world commerce. With a tps of 7,500+ to be expected upon mainnet launch, and the ability to add more Region and Zone chains on demand, Quai Network is setting itself up to become the Layer 1 of the future.

Join us to build a better blockchain.

Quai Network is an open-source Proof-of-Entropy-Minima blockchain network utilizing the capabilities of merged mining to increase throughput and security. Users of Quai Network will enjoy fast transaction times without compromising decentralization and security. Miners will have competitive mining opportunities across the many blockchains within the network.

Capable of thousands of transactions per second, the Quai Network is a new solution to scalability that is soon to be ready for mainnet release.

Terms & Conditions / Disclaimer

The entirety of the Quai Genesis grants program, including the content of this article, is subject to the Terms and Conditions outlined here.

Opinions, ideas, and statements shared in this update are delivered with numerous assumptions, risks, and uncertainties which are subject to change over time. There are multiple risk factors, including those related to blockchain, cryptographic systems, and technologies generally, as well Quai’s business, operations and results of operations, that could cause actual results or developments anticipated not to be realized or, even if substantially realized, to fail to achieve any or all of the benefits that could be expected therefrom. We reserve the right to unilaterally, completely, or partially change plans, expectations, and intentions stated herein at any time and for any reason, in our sole and absolute discretion, and we undertake no obligation to update publicly or revise any forward-looking statement, whether as a result of new information, future developments, or otherwise. ACCORDINGLY, WE RECOMMEND THAT YOU DO NOT RELY ON, AND DO NOT MAKE ANY FINANCIAL DECISION OR INVESTMENT BASED ON, THE STATEMENTS CONTAINED IN THIS UPDATE OR ANY OF OUR UPDATES/ARTICLES — INCLUDING BUT NOT LIMITED TO ANY SELLING OR TRADING OF QUAI TOKENS, ETHER, OR ANY OTHER CRYPTOGRAPHIC OR BLOCKCHAIN TOKEN, OR THE SECURITIES OF ANY COMPANY.

The views, opinions, and statements made in this update are those of an individual author and not those of any institution, University, or legal entity operating within the jurisdiction of The United States or beyond. There is no association between these views, opinions, and statements and any for-profit or non-profit entity, particularly with Universities, Foundations, and other Agencies located within the United States. Any perception of such an association is purely accidental, and will be rectified immediately if brought to our attention by the reader.

Security

All Quai Network blockchains are braided together, keeping the entire network censorship resistant and secure creating Scalable Proof-of-Work.

Decentralization

Quai allows anyone to participate in network governance by running a node or miner. With thousands of participants distributed across the globe, there is no single party with the ability to modify or turn off the network, ensuring zero network downtime.

Scalability

Quai Network automatically expands with demand to upwards of 50,000 TPS while keeping fees under $0.01.

Consensus

Transactions in Quai Network can be locally confirmed prior to global confirmation, offering high throughput with the shortest possible time to economic finality.

Shared Security

All blockchains within Quai Network share Proof-of-Work security through merged mining. Every Quai transaction is eventually confirmed by 100% of network hash power.

Merge-Mined Parachains

Parachains inherit security and interoperability by merged mining with Quai Network, and create new incentives for miners and users.

The Prime Chain

The Prime blockchain acts as the "knot" tying all Quai Network chains together. The Prime blockchain braids sub networks together, facilitating the transfer of data across chains.

Sub Networks

Quai's many high-speed sub networks independently and asynchronously process transactions. All sub networks are braided together by the Prime chain, ensuring shared security and interoperability across the network.