Specification · v0.9 draft · 2026

Psy Protocol — a substrate for civilization-scale coordination.

A bilingual, deeply technical specification of Psy Protocol — realms, coordinators, state machine, runtime, networking, SDK, AI-native infrastructure, and the civilization-scale coordination layer that emerges from them. Less marketing, more architecture; less RFC-than-thou, more readable.

Thesis · 0.0

Protocols are becoming civilization infrastructure.

A protocol used to be a way for two computers to agree on a packet format. The protocols of the next decade are something larger: shared state, programmable memory, persistent identity, and autonomous coordination among humans and machines. Psy is one such substrate — not "a blockchain," not "a crypto network," but a coordination layer that future internet civilizations could plausibly run on. This specification documents how it works, end to end.

Old framing
Psy framing
What it is
A blockchain.
A coordination substrate with shared state, distributed execution, and persistent identity.
Primary user
Crypto traders.
Humans, organisations, and autonomous agents that need to share state.
Unit of value
A token price.
A piece of provably-shared state and the throughput to update it.
Time horizon
Quarterly TVL.
Decades of internet civilization.
Contents

Ten chapters, one stack.

Chapter 01 · Architecture explorer

A request, all the way down.

A user signs a transaction in the wallet. Eight components later, that transaction is a piece of provably-shared state visible to every other participant. Each component is replaceable; the boundaries between them are the spec. Click any block to read it.

USER EDGE CORE STORE psy-wallet browser ext. psy-sdk prover · keys · rpc coordinator :5174 · sequencer realm engine :5175 · executor prove-proxy plonky2 · poseidon validator consensus · voting bridge L1↔L2 sepolia · settle indexer · services queryable views storage layer · state tree · IMT · proof DB
psy-wallet
browser extension
The Psy wallet is a browser extension that holds the user's Psy keys (a Plonky2-friendly key pair, distinct from any L1 EVM key) and signs transactions locally. It mediates every user interaction with the protocol — including the per-recipient claim popups for L1→L2 deposits.
Chapter 02 · Realm specification

A realm is a unit of shared state.

A realm is the protocol's unit of locality. Every account, contract, and balance lives inside exactly one realm; cross-realm communication is explicit and settled at the bridge. Realms isolate failures, parallelise execution, and let the protocol scale without forcing every account into the same global queue.

// realm message envelope (simplified)
struct RealmMessage {
  src_realm: u32,        // e.g. 0
  dst_realm: u32,        // e.g. 1
  seq:       u64,
  payload:   bytes,
  commitment: poseidon256,  // inclusion-provable
}
Chapter 03 · Coordinator

The coordinator is the seam between user intent and shared state.

The coordinator service (default port 5174) accepts signed transactions from clients, orders them, batches them into blocks, hands them to the realm engine for execution, and forwards the resulting state-root commitment to the validator set. It is not the only honest party in the system — but it is the most latency-sensitive one.

Chapter 04 · State transition machine

A protocol is a function from state and transactions to state.

Psy state is a Merkle tree of accounts and contract storage, hashed with Poseidon (Goldilocks field). A block is a list of signed transactions; applying a block deterministically rewrites a subtree of state. Validators do not re-execute the block — they verify a Plonky2 proof that the new state root follows from the old one under the protocol's transition function.

Chapter 05 · Contract runtime

Not an EVM.

Psy contracts are not EVM bytecode. Both the language semantics and the runtime are co-designed with the proving system: every primitive must be cheap to enforce as a Plonky2 constraint, and storage is laid out for efficient Merkle proofs. The trade-off: smaller surface area, larger throughput per proof, and no on-chain Solidity. The table below names where Psy diverges from a typical EVM-like chain.

Psy runtime
Typical EVM chain
Chapter 06 · Networking

A network of small honest parties beats one large opaque one.

Psy nodes form a libp2p-flavoured peer fabric carrying four classes of message: tx, block, vote, and proof. The protocol does not assume any node is honest; it does assume that some bounded fraction is, and that the fabric routes messages within a few hops. Below: the four message types, with their headers and propagation rules.

Chapter 07 · API explorer

Eight requests that exercise the whole stack.

The full RPC surface is hundreds of methods; the eight below are the ones a developer reads first. Pick any to see the shape of the request, the response, and a synthetic trial run. The "send" button is local-only — it does not contact any server; it constructs a deterministic response from a small in-browser stub so you can see the format without authentication.

Chapter 08 · AI-native infrastructure

Future agents will need an internet they can be honest in.

When agents transact and remember on each other's behalf, the protocol underneath them stops being optional infrastructure and starts being the constitution. Psy's primitives — persistent identity, shared state, low-latency settlement, decentralised memory — are designed to be useful to autonomous agents specifically, not just to humans pretending to be agents.

Chapter 09 · Protocol economics & scaling

Six numbers that describe the steady-state.

Headline figures from the v0.9 reference implementation under the standard benchmark workload. The numbers are illustrative and will change with realm count and prover hardware, but the relative shape is informative.

Chapter 10 · Civilization infrastructure

Six futures the substrate makes plausible.

A protocol is a piece of social engineering wearing technical clothing. Below: six classes of institution that look feasible if a substrate like Psy reaches civilization scale. None is inevitable; each is an open construction project.

System modeler

Six knobs. One protocol regime.

Pick a value for each of six dimensions — workload, realm count, prover capacity, network latency, validator participation, and AI-agent share. The modeler pattern-matches your selection against an internal table and writes a short outlook on the protocol's expected behaviour. It is local-only, deterministic, and not a real benchmark.

// local rule-based synthesis · runs in the browser · no remote AI is called
Glossary

Twelve terms the spec leans on.

FAQ

Honest answers, including the speculative ones.