Introduction
System overview: parameters, components, cryptography and data flow.
On this page · 6
Overview
Lean SVM is a layer 1 chain. Its state transition (applyTx), consensus decisions (step) and fee rule (nextBaseFee) are Lean 4 definitions, compiled to a static library and linked into a Rust node. 59 theorems about these definitions are checked by the Lean kernel on every build. All signatures are ML-DSA-44 and all hashes SHA3-256; the chain uses no elliptic-curve or RSA cryptography.
Not related to Solana, lean-svm-jit or Asymmetric Research’s lean-svm; it does not run Solana programs.
Parameters
- Signature
- ML-DSA-44 · FIPS 204
- Hash
- SHA3-256 · FIPS 202
- Public key
- 1,312 B
- Signature size
- 2,420 B
- Address
- 32 B · SHA3-256(domain ‖ key)
- Transfer size
- 2,526 B · first 3,838 B
- Slot length
- 1,000 ms (genesis slot_ms)
- Finality
- in the proposing slot
- Validators
- 1 in v1 · up to 64 in the state machine
- Block limit
- 2 × target = 1,000,000 B
- Fee target
- 500,000 B per block
- Fee floor
- 1 unit / B
- Base fee step
- ± (c / 8 + 1) per block
- Base fee cap
- 2^48 units / B
- Fees
- 100 % burned
- Supply
- 10^15 units, fixed at genesis
- Unit
- 1 token = 10^9 units
- Theorems
- 59, kernel axioms only
- Lean
- v4.36.0, no Mathlib
- Rust
- 1.97.1 pinned · MSRV 1.90
- Testnet API
- https://testnet.leansvm.xyz
- Testnet faucet
- leansvm.xyz/faucet
- Testnet explorer
- leansvm.xyz/explorer
- Own node API
- http://127.0.0.1:8650
Slot length, fee floor and fee target are genesis parameters; the values above are the defaults of leansvm-node init.
Components
| Path | Language | Contents |
|---|---|---|
| core/ | Lean 4 | Spec, Proof and FFI layers; built by Lake into a static library. No dependencies. |
| core-ffi/ | Rust, C | The only unsafe code: shim.c, the LeanCore API, ML-DSA-44 (mldsa-native v2.1.0, vendored), SHA3-256 (RustCrypto sha3 0.12), transaction and consensus types. |
| node/ | Rust | leansvm-node (validator, mempool, storage, HTTP API, chain index on redb 5) and the leansvm CLI. No unsafe. |
| docs/ | Markdown | The design document; code comments cite its sections as §N. |
Source: github.com/leansvm. License: MIT OR Apache-2.0.
Data flow
Clients
Wallets, explorers and the leansvm CLI
Rust · leansvm-node
slot clock · mempool · blocks.log · snapshots · index
Lean 4 · proven
The core
- consensus step
- applyTx
- nextBaseFee
C and Rust · trusted
Cryptography
- ML-DSA-44 · mldsa-native
- SHA3-256 · sha3
Rust owns all I/O: clock, HTTP, mempool, disk. On each event it calls the core with byte-encoded input and receives byte-encoded output (new state + actions, or updated accounts + result). Rust executes actions but does not originate them: it signs only votes the core emitted and applies only balances the core computed.
Terms
| Term | Definition |
|---|---|
| slot | Fixed time window (slot_ms) with at most one block. |
| finalized | Block with a finalize quorum; never reverted. |
| core | The Lean library: consensus step, applyTx, nextBaseFee and their encodings. |
| unit | Smallest amount; 10^9 units = 1 token. The API counts in units. |
| base fee | Protocol price per byte, recomputed after every block. |
| priority fee | Signed per-byte amount above the base fee; orders transactions when blocks are full. |