Quai's approach to scaling is do divide the network into multiple chains (shards), each processing its own transactions in parallel to one another. Through the process of merge-mining, miners contribute their hash power to at least 3 chains at a time, greatly increasing the network security and reducing energy usage. New shards can be dynamically added, providing infinite scalability.
Quai's shards divided in zones, regions and prime (source)
There are 9 zones, each subordinate to one of 3 regions: Cyprus, Paxos and Hydra. When creating a Quai wallet in Koala, you automatically get an address for each of the 9 zones. You can filter balances and transactions per shard in the main Quai page, find the address for each one in its "Receive" page, as well as choose which shard to send from in the "Send" page.
The first two characters of an address (ignoring the "0x" prefix) define which Region and Zone an address belongs to, according to the table below:
Region 1 (Cyprus) 00 - 57 |
Region 2 (Paxos) 58 - AB |
Region 3 (Hydra) AC - FF |
||||||
Cyprus 1 00 - 1D |
Cyprus 2 1E - 3A |
Cyprus 3 3B - 57 |
Paxos 1 58 - 73 |
Paxos 2 74 - 8F |
Paxos 3 90 - AB |
Hydra 1 AC - C7 |
Hydra 2 C8 - E3 |
Hydra 3 E4 - FF |
Example: address 0xA6B3...23A0 belongs to the 3rd zone of the Paxos region (Paxos 3), because its first two characters "A6" are in the "90 - AB" hexadecimal range.
Though zones are isolated from one another, it's possible to send Quai between then. When sending to a different zone in the same region, the transaction must travel up to the Region shard, then back down to the new zone. When sending to a zone in a different region, the transaction must travel up to the Prime shard, then back down the hierarchy. This makes such transactions take a bit longer to confirm, but atomicity is guaranteed. It's not possible to "lose" funds in the process.
Examples:
- Transaction in same zone: 0x3FA2... → 0x40C5...
- Transaction in same region: 0x03CC... → 0x3991...
- Transaction between regions: 0x61F0... → 0xC9CB...
Quai's network is EVM compatible. This means developers on Ethereum should feel right at home to build on Quai. Those used to transacting on Ethereum should also be familiar with the concept of smart contracts and gas fees.
All of this technology is conveniently abstracted away from everyday users. They do not need to know what shards they are interacting with or how to calculate gas fees. Koala Wallet handles all on the background so the entire experience is simple and seamless.