跳到主要內容

Four Paths in State-Machine Design: Bitcoin Script, Ethereum EVM, Solana SVM, and ArcBlock’s Enshrined Kernel

Robert Mao
BlockchainArchitectureBitcoinEthereumSolana

Discussions of distributed systems often become binary: either a modern blockchain must execute arbitrary Turing-complete bytecode, or only a minimal, stateless scripting model can be secure.

Viewed through operating systems and computer architecture, the history is more useful than that divide suggests. Bitcoin, Ethereum, Solana, and ArcBlock represent four distinct engineering approaches to distributed state machines. Each addresses a different central systems question rather than simply rejecting its predecessors.

Four distributed state-machine approaches: Bitcoin's discrete UTXO scripts, Ethereum's shared world state, Solana's parallel execution with separate code and data, and ArcBlock's kernel-native deterministic primitives

1. Bitcoin UTXO + Script: Local Validation and a Minimal Attack Surface

Bitcoin deliberately avoids a global account-balance table. Its Script language excludes loops and broad access to mutable global state.

  • Core abstraction. The ledger consists of discrete unspent transaction outputs, or UTXOs. A transaction consumes existing outputs and creates new ones. Script acts as a stateless Boolean spending predicate attached to each output.
  • Why this design? Evaluating a spending condition is local to the relevant output, the transaction, and its unlocking witness (Witness), rather than depending on arbitrary account state elsewhere in the network. This locality offers substantial scope for parallel validation. The restricted instruction set also avoids loops and cross-contract reentrancy, keeping the core verification surface small and amenable to analysis.
  • Engineering boundary. The same isolation makes persistent, multistep business workflows difficult to express. Two-sided AMM pools, coalition stored-value cards, and fulfillment stakes with challenge windows generally require additional off-chain protocols, multiparty signing arrangements, or indexers.

2. Ethereum Account + EVM: General Bytecode and Shared World State

Ethereum's major contribution was to generalize the blockchain from a specialized peer-to-peer cash ledger into a shared, Turing-complete world computer with sequential state-transition semantics.

  • Core abstraction. The network maintains a unified world-state trie. Developers deploy EVM bytecode as smart contracts, each with persistent key-value storage. Synchronous message calls such as CALL and DELEGATECALL let contracts compose operations across contract boundaries within one transaction.
  • Why this design? Shared state and synchronous calls provide highly flexible atomic composability. Developers can introduce token standards, lending systems, and auction protocols at the application layer without changing node software.
  • Engineering boundaries.
    1. Sequential execution dependencies. A contract can determine its storage accesses dynamically. Before execution, the node may not know every contract and storage slot it will touch. The conventional execution model therefore processes transactions sequentially; parallel approaches must detect and resolve those dependencies.
    2. Application-layer security burden. Even basic balance and authorization logic often lives in separately authored contracts. Reentrancy, unlimited approve permissions, upgradeable-proxy privileges, and arithmetic errors consequently become responsibilities that each application must manage and audit.

3. Solana Account + Sealevel SVM: Parallel Execution Through Separate Code and Data

For high-frequency applications, sequential execution creates a throughput constraint. Solana's Sealevel execution model addresses it through an idea familiar from operating systems: separate executable programs from mutable data accounts, and require transactions to declare their account access in advance.

  • Core abstraction. Solana's BPF/SBF programs keep mutable application state in separate accounts rather than in the executable code itself. Each transaction identifies the accounts it will read and those it may write.
  • Why this design? Explicit readSet and writeSet information lets the scheduler identify transactions without conflicting account accesses before executing them. Like a database lock manager, it can dispatch independent work across multiple CPU cores.
  • Engineering boundary. Developers must design account layouts and PDA (Program Derived Address) relationships explicitly. Clients must supply the accounts required by the call chain when constructing a transaction. High-throughput validation also places substantial demands on validator memory, storage, and network bandwidth.

4. ArcBlock's Enshrined Kernel: Moving Common Commercial Primitives into the Protocol

Drawing on Bitcoin's local safety, Ethereum's expressive workflows, and Solana's explicit access sets, ArcBlock asks a different question:

For commercial applications and AI agent collaboration, should developers repeatedly rebuild token ledgers, auction escrow, stored-value settlement, and permission firewalls from Turing-complete bytecode?

When building a high-concurrency commerce or banking system, application developers do not normally implement an ACID lock manager or double-entry accounting engine in assembly inside the database process. The critical data structures and transaction invariants belong in the database engine; applications drive them through declarative transactions and composable operations.

That is the fourth approach: an evolvable, enshrined protocol kernel.

Application contract stacks compared with a deterministic protocol kernel that provides tokens, staking, AMMs, identity guards, and post-execution conservation checks as native instructions

1. First-Class Kernel Primitives Reduce Repeated Contract Implementation

In ArcBlock's architecture, identity and scoped session delegation (DID + AccountGuard), container assets (AssetState), eight noncustodial staking mechanisms (Stake-for-X), two-stage token incubation and market making (TokenFactory + built-in AMM + PathPayment), and coalition settlement (T-Point + DirectBuyTreasuryCashier) are ledger-native transaction protocols, or Tx Protocols, subject to shared validation boundaries.

Calling createToken, stakeForGas, or spendValueCard invokes a kernel state-machine operation rather than an independently deployed third-party contract. These paths avoid separate approve authorizations and cross-contract reentrancy, and do not give an application contract deployer a withdrawal backdoor into protected reserves.

2. The Sandwich Security Gate: Conservation Above Business Logic

A general-purpose VM executes the logic a contract specifies. If that logic contains an arithmetic or accounting error, the VM does not automatically understand that the resulting balance should not exist.

ArcBlock's controlled state tables, including accounts, assets, tokens, and stakes, have explicit accounting semantics. Around protocol execution, a sandwich security architecture applies checks before and after business logic. Before state is committed, an independent PostExecutionInvariantGate verifies ledger-wide zero-sum double-entry conservation (Δ === 0) and asset-ownership consistency. If a newly introduced protocol violates those invariants, the entire transaction rolls back. The gate protects those defined invariants even when business code is faulty; it is not a substitute for every application-specific rule.

3. Modular Instruction Pipelines and TransactionBlock: Composability Without Custom Bytecode

Keeping arbitrary application bytecode out of the ledger kernel does not require giving up composition.

Modular protocol slots and the TransactionBlock engine combine controlled instruction pipelines with atomic multistep transactions and declared read/write sets

  • For chain and node architects: @ocap/tx-pipeline divides transaction processing into more than 30 pluggable instruction pipes. New domain primitives can evolve as protocol plugins protected by the same conservation gates.
  • For application developers and AI agents: the TransactionBlock engine combines SQL savepoints (Savepoint) with explicit state access tracking (StateFootprint: readSet / writeSet). Within its execution budgets, a caller can connect native steps, such as “route a payment → issue a coalition stored-value card → attach an encrypted credential → split the settlement,” using $steps[i].output.*. The result is one atomic composite transaction whose operations can be presented clearly in the wallet for clear signing.

Comparing the Four Engineering Approaches

Architectural dimensionBitcoin (UTXO + Script)Ethereum (Account + EVM)Solana (Account + SVM)ArcBlock (Enshrined Kernel + TxBlock)
Core state abstractionDiscrete outputs with local spending predicatesShared mutable contract storage in a global state treeSeparate programs and data accounts with declared accessFirst-class DIDs, container assets, staking slots, and 11 controlled ledger tables
Programming and extensionRestricted Boolean spending scriptsUser-deployed Turing-complete bytecodeCompiled BPF programs and client-supplied account graphsHigh-level native primitives and atomic multistep TransactionBlock
Concurrency and conflictsNatural locality at the UTXO levelDynamic runtime addressing; conventional sequential executionDeclared rwSet supports multicore schedulingExplicit StateFootprint tracking with hard read/write budgets
Commercial safety boundaryMinimal instruction set reduces attack surfaceIndividual contracts implement and audit their business rulesPrograms validate account ownership and signersNative primitives plus post-execution double-entry conservation (Δ === 0)
Primary architectural fitPeer-to-peer transfers and censorship-resistant settlementOpen financial protocols and permissionless contract experimentationHigh-frequency order books and data-center-scale executionVerifiable commercial settlement, autonomous AI agent operations, and lightweight application chains

Put the Vault in the Kernel

Bitcoin demonstrated digital scarcity; Ethereum expanded on-chain programmability; Solana explored parallel execution at scale. Each approach extended what distributed systems could support. ArcBlock's approach is to consolidate common identity, asset, staking, and commercial settlement operations into protocol primitives protected by mathematical conservation checks, reducing the need for every application to rebuild its own critical accounting machinery.

Once the execution model is chosen, another engineering question follows: where should growing state live, and who pays to retain it over time? The next article compares “State Bloat and Storage Economics: Bitcoin's UTXO Set, Ethereum's MPT, Solana's Rent-Exempt Accounts, and ArcBlock's ArcSpace Proof Offloading.”