All About Chainweb: 101 and FAQs
Learn more about Kadena’s public, proof-of-work blockchain protocol designed for scalability and security.
What is Chainweb?
Chainweb is Kadena’s public blockchain platform. Originally conceived by Kadena founder Will Martino, Chainweb is unique in that it uses a braided, parallelized proof-of-work consensus mechanism which allows for improved throughput and scalability while maintaining the security and integrity found in Bitcoin. In short, Chainweb is a blockchain that is faster, more secure, and more scalable.
What is a consensus mechanism?
A consensus mechanism is how a computer network comes to agreement about what information is true or false. In a centralized system, such as a bank, a designated authority (the bank) is trusted to determine that information stays true. In a decentralized system, like a blockchain, a consensus mechanism becomes a set of foundational rules for how a network agrees upon and verifies valid transactions, preventing double spending and fraud.
What does Proof of Work mean? How is it different from “Proof of ____”?
Proof of Work (PoW) refers to the consensus mechanism that was first realized with Bitcoin’s launch in 2008. It differs from other consensus mechanisms (e.g. “proof of stake”/PoS) in that it uses computational mining and cryptographic hashing to elect a leader who will add the next piece of information to the ledger. In proof of work, transactions are bundled into “blocks” and confirmed to the ledger through an energy consuming, probabilistic process that requires miners (those who own computers capable of) solving a cryptographic hash. Miners are rewarded newly created virtual coins (and sometimes network transactions fees) for their work.
How does Chainweb work?
Chainweb works by taking the foundation of a Bitcoin mining chain and parallelizing this work across multiple chains — each referencing their peer’s headers — in specific configurations (see below “Is Chainweb a DAG?”) that allow for efficiency and better throughput.
For an in-depth explanation of the technical foundations of Chainweb, start by reviewing the Chainweb whitepaper.
For some recent (Oct 2018) follow-ups on security and addressing assumptions and misunderstandings about Chainweb, check out our Medium post.
When will Chainweb launch?
Kadena aims to launch Chainweb in late 2Q2019. Chainweb Testnet is set to launch late 1Q2019.
Frequently Asked Tech Questions about Chainweb
Why does Chainweb use proof of work?
Chainweb uses proof of work for a few key reasons:
- Evidence: PoW is the only “battle-tested” consensus protocol primitive.
- Economic incentive alignment: PoW creates an economic incentive for the majority of the hashpower to validate and honestly support the entire network. It is an open research question if a non-PoW approach can reasonably achieve the same.
- Regulation: In the eyes of certain financial regulators, proof of work miners are not considered money transmitters, making a probabilistic PoW mining system safer from a US regulatory perspective than a system with more “finality” like PoS.
How does Chainweb ensure security?
Braiding chains together was first proposed for security purposes. By having multiple mined blocks at the same height each referencing each other’s past, the protocol decreases the duration of time where an attacker could get “lucky” against an honest network. Think of an attacker needing to flip 6 coins and get all heads (mine 6 blocks) vs needing to flip 12 coins and get all heads (mine 6 blocks from two related chains). The latter is harder. This same intuition applies to Chainweb’s multi-chain configuration.
How does Chainweb scale?
Chainweb scales by providing a mechanism to asynchronously produce many blocks on different peer chains all at the same height, with each block requiring a fraction of the hash power of the total network. This configuration drastically increases the number of transactions per second over the total network.
What are the main limitations to scaling in Chainweb?
Chainweb can scale to meet the needs of its users, but the scaling isn’t automatic. Initially, the main limitation to scaling is adoption. Chainweb will hard-fork to higher throughput configurations, but each hard-fork needs to be motivated by alleviating congestion as the upgrade to a larger network requires miners to procure more replicating servers. To upgrade from a 50-chain to 100-chain network, the 50-chain network needs to be congested and demonstrating continued adoption. Long-term, bandwidth becomes the main resource that is constrained.
Is Chainweb a DAG (Directed Acyclic Graph)?
All blockchains are technically DAGs. Chainweb, like Bitcoin or Ethereum, is not an arbitrary DAG, as compared to a structure like that of Hashgraph, for example. Unlike Bitcoin or Ethereum, Chainweb’s DAG structure is fixed and multi-channel. By fixing the DAG structure, Chainweb limits the worst-case (e.g. real world) performance. Arbitrary DAGs have known performance problems under adoption — they initially have many more execution channels, because transactions are largely unrelated, but as adoption picks up and killer apps appear on the platform the overall performance decreases because transactions become increasingly related.
Is Chainweb like Lightning?
Chainweb is a base-layer/layer-one architecture. Lightning network is a layer-two solution and can run on top of Chainweb as an even greater force multiplier than it does on existing Proof-of-Work blockchains. Pact, Kadena’s smart contract language, has baked-in support for integrations of layer-2 scaling solutions (e.g. lightning, state channels and side-chains), ready to experiment with at testnet.
What are side-chains? Does Chainweb use them?
Sides chains are separate blockchains (with their own consensus ledger) that run outside of a “main chain.” While this may sound similar to Chainweb, Chainweb’s chains are NOT side-chains because (a) there is no “main” chain as all chains are peers and (b) every chain in Chainweb is advanced under the same consensus umbrella as its peers.
What is sharding? Is Chainweb “sharding”?
“Sharding” most commonly refers to splitting the network up into distinct partitions called shards, each falling under its own consensus region. Chainweb’s partitioning differs from other methods of sharding because Chainweb maintains a global consensus umbrella.
Under sharding in Proof of Stake, each shard has its own ledger and subset of transactions that are independent from transactions that have been allocated to different shards within the same network. In PoS sharding, nodes and validators are only required to process transactions that are local to their respective shards. This allows for greater throughput as each node is only required to validate a small subset of transactions from the total that have been sent throughout the network. While funds can be moved between shards, the is no enforceable protocol-level requirement that the validators of shards overlap.
Forcing validators to validate every shard is untenable. Chainweb differs from PoS sharding by using the economics of PoW. In Chainweb, it’s economically dominant for miners to mine/replicate/validate each chain (“shard”) in the Chainweb network.
What are tokens used for on Kadena’s network?
Tokens are used to pay for computing power, known on other platforms as “gas,” on the blockchain.
How does Chainweb deal with congestion?
Transaction costs will rise as the number of transactions rise on one chain. You can set up an account on a less congested chain, where transaction costs are cheaper, and move your tokens through a simple burn-receipt using on-chain SPV. Miners have economic incentive to cooperate with reconfiguring the network to a larger size when the entire network starts to become congested.
How would you move tokens between different Chainweb chains?
Tokens are moved across chains using a Simple Payment Verification (SPV) smart contract.
Have more questions about Kadena and Chainweb? Join our Discord community chat.
Sign up for our newsletter to stay up to date on all the latest announcements.