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

The LEZ guide

The Logos Execution Zone is a programmable chain with two kinds of accounts, public and private, that programs can treat identically in the sense that privacy becomes a property of the transaction, not of the program (What LEZ is).

This guide follows the dev branch at the commit named in Sources. That commit is after the v0.4.1 release, so the guide covers the v0.4.x line the live testnet runs plus a few changes not yet released. A legacy testnet still runs the v0.2.4 line and its older whole-account interface; the automated market maker catalog entry describes a program deployed there.

PartForWhat it gives you
I. Understand LEZeveryonewhat this is and whether it fits your problem
II. Use LEZend usersthe wallet: accounts, transfers, reading state, collecting messages
III. Build on LEZprogram authorsfrom an empty shell to a deployed program, then the full programming model
IV. Privacy and patternsprogram authorswhat a private transaction reveals, what cannot be done privately, and the patterns designs are built from
V. The catalogprogram authorsworked designs, and which public and private combinations each one supports
VI. Integrate with LEZclient and service developersthe RPC surface, finality, the wallet library, the C ABI, events, running a node
VII. Reference and internalsanyone checking a factthe guest API, the derivations and constants, and how the engine and circuit work

New to LEZ: read Part I in order. To write a program, the quickstart gets something running and Part III explains it. To check a fact, Part VII has the tables.

Read this before designing anything

The privacy chapters say what a private transaction publishes and what cannot be done privately at all. Several limits are structural and shape the catalog’s designs. A design that ignores them can pass its tests and still leak or stall in use.

Conventions

LEE and LEZ are defined in What LEZ is, and an actor (an account and a program) in The model in one page.

Code in Parts I to III and VII is taken from the repository or matches it. Code in the catalog is illustrative: it follows the real API but has not been built or tested.

Repository paths are relative to the root of logos-blockchain/logos-execution-zone. Code in another repository is written as <org>/<repo>: <path>.

Amounts are u128 unless a program says otherwise. Timestamps are Unix milliseconds. Block ids start at 1.