"Code is law" is the principle that smart contract outcomes should be determined solely by the code that was deployed and the transactions that were submitted — not by the decisions of any external authority. This idea predates Ethereum, but it became the defining principle of Ethereum Classic after the events of 2016.
Origins
When Ethereum launched in 2015, its founding promise was a platform for "applications that run exactly as programmed without any possibility of downtime, censorship, fraud, or third-party interference." Smart contracts were meant to be self-executing agreements where the code itself was the final arbiter.
The Test
In June 2016, The DAO — a smart contract holding roughly 14% of all ETH — was exploited through a recursive calling vulnerability. The exploit was legal within the rules of the smart contract: the code permitted the withdrawals. But the financial impact was enormous.
The Ethereum community faced a choice: intervene to reverse the exploit (violating the principle that code determines outcomes) or accept the result (preserving the principle at significant financial cost).
The Fork
On July 20, 2016, at block 1,920,000, the majority of the network chose to implement an irregular state change that moved the exploited funds to a recovery contract. This was the DAO fork.
Ethereum Classic Continues
Those who believed that "code is law" meant the blockchain should not be rewritten — regardless of the circumstances — continued mining and transacting on the original chain. This chain became Ethereum Classic.
The principle does not mean all smart contract outcomes are desirable. It means the blockchain itself should not be the mechanism for correcting them. Courts, insurance, and governance layers can address harms without modifying the immutable ledger.
Significance
"Code is law" is not a slogan — it is a design constraint. It means ETC's ledger has never been irregularly modified, and its history is a faithful record of every transaction since genesis block 0 on July 30, 2015.