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.
| Part | For | What it gives you |
|---|---|---|
| I. Understand LEZ | everyone | what this is and whether it fits your problem |
| II. Use LEZ | end users | the wallet: accounts, transfers, reading state, collecting messages |
| III. Build on LEZ | program authors | from an empty shell to a deployed program, then the full programming model |
| IV. Privacy and patterns | program authors | what a private transaction reveals, what cannot be done privately, and the patterns designs are built from |
| V. The catalog | program authors | worked designs, and which public and private combinations each one supports |
| VI. Integrate with LEZ | client and service developers | the RPC surface, finality, the wallet library, the C ABI, events, running a node |
| VII. Reference and internals | anyone checking a fact | the 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.