TradFi + DeFi = XLN β The superset of both worlds, delivering institutional-grade governance with crypto-native innovation.
XLN is not a rollup or another L2. It is the organizational layer for digital finance: each Entity is a state-time machine with its own blocks, quorum, and storage. There is no single global ledger; instead, every Jurisdiction/Entity/Account maintains its own append-only ledger and interops via signed messages.
For Crypto: Zero-cost DAO creation, infinite organizational complexity, cross-chain identity
For Institutions: Cryptographic audit trails, hierarchical approvals, dual-class governance
For Everyone: The missing infrastructure for programmable organizations
- J-machine: Public registry of entities, reserves, and dispute outcomes. Optional anchoring layer for registered entities across chains.
- E-machine: Governance and policy for an organization. Quorum signs proposals to commit actions and anchor account roots.
- A-machine: Channels and subcontracts for users and apps. Emits proofs that E-machines sign and commit.
graph TD
subgraph J["J-machine (Jurisdiction)"]
JR["Registry / Reserves / Disputes"]
end
subgraph E["E-machine (Entity)"]
EG["Governance & Policy"]
AR["Committed A-root"]
EG --> AR
end
subgraph A["A-machine (Account)"]
CH["Channels & Subcontracts"]
end
CH -->|proofs| EG
EG -->|registration / numbering| JR
- β Hierarchical governance like real corporations
- β Dual-class shares (Meta/Alphabet style)
- β Audit trails for every decision
- β Subsidiary management with proper controls
- β Compliance-ready architecture
- β Zero-cost entity creation (spawn 1000 DAOs free)
- β Composable governance modules
- β Cross-chain operations native
- β Permissionless innovation
- β Cryptographic guarantees throughout
- π State machines > Smart contracts
- π Bilateral sovereignty > Global consensus
- π Organizational primitives as first-class citizens
- π Infinite complexity at zero marginal cost
- JEA: Jurisdiction β Entity β Account hierarchy. Think of it as Registry β Organization β Operations.
- State-time machines: Each participant maintains their own cryptographically-secured ledger. No single point of failure.
- Personal consensus: Your organization advances when YOUR quorum signs. No waiting for global agreement.
- Hanko signatures: One signature proves entire approval hierarchies. BoardβCEOβCFOβTreasury in one proof.
- Universal integration: Single Hanko authorization works across Uniswap, Aave, Compound, and any protocol.
We refer to these as J/E/A machines: a Jurisdiction machine (J-machine), an Entity machine (E-machine), and an Account machine (A-machine).
- J-machine: Public registry/observer of entities, reserves, and dispute outcomes; maintains a verifiable ledger of registrations and collateral events for anchoring registered E-machines.
- E-machine: Governance/policy machine for an organization. Proposals, votes, and finalized actions are committed block-by-block by the entityβs quorum.
- A-machine (account/channel): Channel and subcontract state for users; bilateral or nested machines that emit proofs which E-machines sign and commit.
These ledgers are sovereign and composable. Interactions are mediated by signatures, not by a global sequencer.
- Channels (bilateral A-ledgers): Deterministic, bilateral machines replicated at both sides. Each channel has a stable
channelKey = sha256(min(addrL,addrR) || max(addrL,addrR)). State includesblockId,timestamp,transitionId,previousBlockHash,previousStateHash. - Subchannels & deltas: Each channel holds many subchannels with token-specific deltas and limits:
leftCreditLimit/rightCreditLimit,leftAllowence/rightAllowence,collateral,ondelta/offdelta,cooperativeNonce,disputeNonce.proposedEventsare typed intents (e.g., settle, withdraw) that become proofs for the Entity to sign and commit.
- Subcontracts: Embedded contract-like records per token/chain, tracking deposits/withdrawals (
leftDeposit/rightDeposit,leftWithdraw/rightWithdraw) andstatus(active/closing/closed). - Proof encoding: Channel state is RLP-encoded and stored under
channelMap[channelKey]; the channel root is committed in the Entityβs final block, anchoring the A-ledger into the E-ledger. - Counters and safety:
pendingSignatures,sendCounter/receiveCounter,rollbacks, and nonces coordinate cooperative vs dispute flows. - Determinism: All channel/account state commits via RLP+Merkle with per-machine signatures, enabling replay, audit, and fast recovery.
graph LR
A["A-machine"] --> CKey["channelKey = sha256(min(L,R)||max(L,R))"]
CKey --> State["channel state: blockId, timestamp, transitionId, prev hashes"]
State --> SubC["subchannels: tokenβ(delta, limits, nonces)"]
State --> SubK["subcontracts: deposits/withdrawals, status"]
SubC --> Proofs["typed proposedEvents β proofs"]
SubK --> Proofs
Proofs --> ECommit["E-machine commit (A-root)"]
bun run src/server.tsOptional flags: set NO_DEMO=1 to skip the demo.
docs/README.mdβ architecture from ground to skydocs/memo-to-model.mdβ tone, positioning, and summary guidedocs/hanko-architecture.mdβ hierarchical signatures and integrationdocs/contract-architecture.mdβ smart contract split and decisions
- No single global DA/consensus: Per-machine ledgers remove sequencer risk and DA bottlenecks.
- Zero-marginal-cost hierarchy: Hanko enables infinite committees/sub-DAOs at 0 gas.
- Institutional governance: BCD separation maps to real corporate control/economics.
- Deterministic, signed blocks per machine (replayable).
- Quorum thresholds enforced for progression.
- RLP+Merkle snapshots persisted to LevelDB; batch writes for safety.
sequenceDiagram
participant P as Proposer (replica)
participant V as Validators (quorum)
participant E as E-machine
P->>V: propose(frame)
V-->>P: precommit(sig)
P->>E: commit(frame, sigs)
E-->>V: new block (height+1)
Run the deterministic demo:
bun run src/server.tsYou should see output like:
π― === FINAL VERIFICATION ===
π Consensus: β
SUCCESS (messages: β
, proposals: β
)
π Entity #1: 10 messages, 0 proposals, height 3
π Entity #2: proposals pending (gossip mode)
πΈ Snapshot captured: "Tick 59: ..."
On-chain registration will attempt via local RPCs; if none are running youβll see connection errors, which is expected for offline runs.
- Precommit: Validator signature over a proposed frame.
- Frame: Deterministic batch of actions to be committed as a block.
- A-root: Merkle root of A-machine state recorded by an E-machine block.
- Hanko: Hierarchical signature scheme treating entities as signature programs.
From Wall Street: Hierarchies, controls, audit trails, compliance
From Web3: Permissionless, composable, global, instant
Beyond Both: Programmable organizations at zero marginal cost
We're not building another blockchain. We're building the organizational infrastructure that makes both traditional and decentralized finance obsolete by delivering everything each promises and more.
- Where Wall Street meets Web3.
- TradFi + DeFi = XLN.
- The organizational layer for digital finance.
- Corporate governance, cryptographically guaranteed.
- Build organizations like you build software.