Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

What LEZ is

The Logos Execution Zone is a privacy-agnostic programmable chain where a program is by default oblivious to the privacy setting of an account it deals with.

The unusual part

On most chains, privacy belongs to a particular application built for it (a mixer, a shielded pool, a dedicated private token), and other applications reach it only through that one.

On LEZ, privacy, by default, is a property of the account and the transaction, not of the program. A program is a RISC Zero guest binary that receives a message, sees one account’s state, and returns a new state. The same compiled binary runs on the sequencer when the account is public, and inside the owner’s own prover when the account is private.

One program can serve both: a token that works for public balances may work for private ones, and a multisig with public members may work with hidden ones. The catalog explores that property, including where it runs out.

What it costs

Private execution happens on your machine. Proving a transaction can take a significant amount of time depending on your machine. You pay for privacy in latency, and a private transaction also pays a fee: from a reserve proven inside it, or through a declaration by one of its public signers (Private fees).

Private state is hidden on LEZ. The chain stores a commitment and an encrypted note rather than your plaintext data, so a private account reads as uninitialized until the wallet has scanned the chain for notes it can decrypt (Reading the chain).

Privacy restricts how users may interact with foreign accounts. A program cannot read a private account it does not own. A public program cannot react to private state unless the private side chooses to tell it. What you cannot do privately is the full list.

Where it sits

LEZ is a zone on the Logos blockchain, which describes itself as “a privacy-preserving, censorship-resistant blockchain for decentralized network states”.

A zone is a channel on that chain. The LEZ sequencer produces zone blocks and inscribes them into its channel. Deposits cross through the same channel. Withdrawals are disabled in this version: the bridge program rejects them. Finality has the mechanism.

The sequencer is a committee of staked keys, which on a local devnet is a single key. A key whose stake in the stake program reaches the channel’s minimum is a member, and members take turns inscribing blocks (Sequencer stake). Every node re-executes final blocks, and a sequencer reports the signer of one that fails through the producer’s fault (Finality). A Slash approved by two thirds of the committee, never fewer than two, burns a key’s whole stake; the stake program checks only the approvals, not the offence (slash_approval_threshold, lez/programs/sequencer_stake/core/src/lib.rs). Members gossip transactions to each other to save time, and pass slash and upgrade approvals the same way. A node that loses gossip keeps following and producing blocks from the L1 alone, but cannot gather other members’ slash approvals (Running a node).

LEE, the Logos Execution Environment, is the state machine, the program interface and the privacy circuit: the part that decides what a program is and what a proof must show. LEZ is the zone built on it: the sequencer, the wallet, the indexer, and most of the builtin programs. Three builtins sit in LEE instead, because the engine itself needs them: the native token (lee/state_machine/core/src/native_token.rs), the program loader (lee/program_loader), and the signature program, which has no handler and holds a commitment to each account’s signing key (lee/state_machine/core/src/signing_key.rs). Program authors work almost entirely with LEE types, from the lee_core crate.

Proofs are generated with RISC Zero. A program is a RISC-V binary for the zkVM, identified by an image id that is a hash of its bytecode unless hardcoded by the protocol for native programs.

What this guide will not tell you

Where this guide and the code disagree, the code is right; Part VII names the source files so you can check.

It does not cover the L1’s validators, staking or economics.

Where to go

The model in one page is next. The introduction routes you by what you came for: the wallet, a program, or a client.