/ 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.
evm
The Ethereum Virtual Machine, or EVM, is a distributed state machine that allows users to encumber code execution to the processing of a transaction. This allows users to define complex spending conditions and user interactions that could not have been possible in a simple payment network. The EVM is what enables and executes smart contracts on Ethereum, and is maintained by Ethereum nodes.

Each Ethereum node maintains its own copy of the EVM, and the canonical, or “correct” state of the EVM is generally determined through majority consensus among nodes. This construction retains the decentralized nature of blockchains while opening the door up to much more intricate on-chain activity than simple peer-to-peer transactions.

While the EVM is not the only mechanism that can create a programmable blockchain, it has dominated the world of smart contracts since its inception. Upon Ethereum’s release, the smart contract language Solidity was created to provide a more readable and auditable language for developers to write EVM contracts. Not using a higher level language like Solidity would force developers to manually construct contracts from bytecode, which is more error prone and harder to audit. Despite the creation of a multitude of new tooling and compilers used to interact with the EVM, Solidity remains the most widely used language to write EVM contracts.

What does it mean to be evm compatable?

While Ethereum was the first blockchain to introduce the EVM, there are now many other blockchains that utilize Ethereum’s VM to implement smart contract support.

A blockchain’s VM is considered to be EVM-compatible if it contains the same opcodes as the EVM. If all EVM opcodes can be executed, then any language that only uses EVM opcodes can also be used to create smart contracts and interact with any other EVM-compatible blockchain.

In practice, this means that the same applications can be deployed on any EVM-compatible chain, without excessive (or oftentimes any) modification to the flow or code. Some EVM-compatible chains, like Quai Network, utilize multiple interconnected, simultaneously operating EVMs to offer lower-cost contract interactions and state modifications.

Interestingly, a blockchain must not necessarily be EVM-compatible in order to be Solidity-compatible. A VM which supports the complete EVM instruction set without modification is EVM compatible, but a VM which is not EVM-compatible may still be targetable by Solidity. A Web Assembly (WASM) based Virtual Machine, for example, can be Solidity-compatible as long as it offers a mechanism for compiling Solidity into the new VM’s bytecode. The distinction between EVM-compatibility and EVM-noncompatibility can be seen in the bytecode — raw contract bytecode can be copy-pasted between EVM compatible chains and be usable, while the same code would be unusable in a non-EVM-compatible chain.

What are the advantages of being evm compatable?

EVM-compatible blockchains and Layer 2s maintain the largest communities of active developers and users. Due to the EVM’s existing popularity and diverse set of opcodes, the vast majority of smart contracts and decentralized applications are written for and deployed on an EVM-compatible chain.

With such a robust community of developers, the process of building for the EVM has been heavily documented and refined by a distributed and highly diverse set of individuals. A long history of successful (and unsuccessful) EVM applications have laid the foundation for a secure and well-understood developer environment.

The languages used to develop on the EVM can be complex, but make up for this complexity with their ability to fulfill nearly any imaginable demand due to the EVM’s turing-completeness. Turing-complete VMs do, however, present the risk of infinite loops, which can be avoided through thorough auditing and vetting of smart contract code.

The most valuable aspect of the EVM is its community and documentation. Thousands of resources, including the hands-on experience of Solidity developers, are available for aspiring builders to reference.

While EVM-compatibility has many advantages, there are some weaker points of the EVM, such as its complexity and its gas pricing. As the blockchain world’s first foray into smart contracts, the EVM prioritizes functionality over simplicity. While languages like Solidity are notoriously complicated, the tooling that has been built to supplement EVM-based developers in recent years has drastically improved the developer environment and experience, while keeping the EVM’s full turing-complete functionality.

The EVM also has existing issues with gas pricing, specifically surrounding state rent that bottleneck the network:

The thing that Ethereum really suffers for is that it doesn’t have state rent. So that state size has bloated to the point where they are highly constrained by input/output operations. So it’s not necessarily an inherent problem with the EVM, it’s carrying around large amounts of state and not having a payment mechanism for it. They didn’t cost something that’s clearly an externality. The way we solve it, is — just as in sharding state allows for more efficient propagation of transactions, it also allows for smaller state size in any given context. And the other thing we’re doing is adding state rent, so we can limit the bloat of state, which will allow us to process vastly more transactions.” says Dr. K, co-founder.

What are some of the most popular evm tokens?

The most popular token utilizing the Ethereum Virtual Machine is, possibly unsurprisingly, Ethereum. As the first protocol to support smart contract capabilities in any capacity, Ethereum has enjoyed a powerful first-mover advantage, and has entrenched itself as the go-to platform for DeFi, NFTs, and more. However, the high fees that Ethereum frequently experiences during periods of high demand have driven users to look for alternative protocols that offer comparable security, decentralization, and functionality to Ethereum without the high cost of use.

There are also a plethora of projects, such as BSC, Tron, and EOS, that offer low-fee EVM-compatibility at the cost of decentralization and/or security. None of these projects, however, have been able to maintain low fees while retaining comparable decentralization, security, and functionality to Ethereum.

In contrast, Quai Network is a pre-Mainnet network of blockchains utilizing merged mining and sharding to offer the functionality of the EVM at a low cost, without making any compromises to decentralization or security. Through the use of many intertwined blockchains producing blocks asynchronously, each running an independent EVM, Quai Network scales both decentralization and smart contracts to unprecedented levels.

Conclusion

The EVM, as the first method of implementing smart contracts to a blockchain, has thrived over the past decade with an explosion in new development activity and tooling. However, despite this large moat, there are many improvements that can be made to the EVM that have the potential to further refine incentives and improve upon the existing state of smart contracts.

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.