/ 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.

REBUILDING CURRENCY

Reignite the Crypto Revoluton.

> Summary
Money is Losing its Meaning. Find Yours.

Quai Network is transforming the world of blockchain with the first decentralized energy dollar, $Qi, designed to provide predictable value and facilitate seamless transactions on the only scalable and programmable Proof-of-Work blockchain. Our vision is to create a financial system that is transparent, secure, and fair, empowering individuals to transact freely without intermediaries.

> The problem:
0
0 1
 / 
0
0 1 2 3

Scalable Proof of Work

> Summary
Real scalability without sacrifice

Experience ultra-fast transactions with throughput up to 50,000 TPS, all at incredibly low fees – less than a penny per transaction, today and every day. 'A Penny Today, a Penny Tomorrow, a Penny in Perpetuity.' Our platform is built on a seamless, homogeneous layer, ensuring swift finalization. This robust design is resilient to censorship and fortified against adversarial threats, offering you a secure and efficient transaction experience.

> The features:
0
0 2
 / 
0
0 1 2 3

Powerful Platform Economy

> Summary
Programmable Finance for the real world

Quai Network features EVM-compatible smart contracts, as well as MEV-resistant transaction ordering, ensuring more equitable and efficient execution in DeFi markets. Additionally, we've implemented work-based primitives and proofs, which enables the transfer of hash compute power, truly decentralized infrastructure and other markets for digitally-native resource markets.

> The features:
0
0 3
 / 
0
0 1 2 3

building the blockchain of the future

What Can You Build?

  • Payment

  • Gaming

  • NFTs

  • Social

  • Payment

  • Gaming

  • NFTs

  • Social

  • DeFi

  • Metaverse

  • Identity

  • DAOs

  • DeFi

  • Metaverse

  • Identity

  • DAOs

Developer Resources

Docs

Visit the documentation to start building on Quai.

View Docs

Code

View all of Quai's open-source code and propose improvements.

View Code

Network

Use Quai's tooling suite to explore the network.

Our Partners

  • Polychain Capital

    Founded by Olaf Carlson-Wee in 2016, Polychain Capital is a leading VC in the crypto space.

  • Alumni Ventures

    Founded in 2014, Alumni Ventures is now one of the most active VCs in the world.

  • Zero1 Capital

    Zero1 Capital is a VC focused on digital assets and decentralized finance.

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.