Vector Commitment State Tree
State storage over vector commitments rather than hash commitments, shrinking access proofs from O(k · log n) to O(k + log n) so a light client can verify any account, slot, or code with a sub-kilobyte proof
Abstract
The Lux state tree commits to its children with a vector commitment
(Pedersen commitments on Banderwagon, opened by inner-product arguments)
instead of a hash. That single substitution changes the proof-size law from
O(k · log n) to O(k + log n), where k is the number of accessed keys and
n is the tree size, because the sibling hashes a hash tree must ship at every
level collapse into one batched opening. A transaction touching five to ten
keys proves out in about a kilobyte, which is what makes light-client state
verification practical rather than theoretical. The commitment primitive and
its precompile are specified separately (LP-4840, LP-4845); this LP specifies
the tree built over them.
Specification
Tree structure
- Branching factor: 256 — one child per byte of the key path.
- Key length: 32 bytes, so 256 levels are possible, but typical depth is 3–4.
- Internal nodes: a Pedersen commitment over the child commitments, on the Banderwagon curve.
- Leaf nodes: a Pedersen commitment over
(key_suffix, value)pairs, up to 256 values per leaf.
Commitment scheme
Each internal node stores a Pedersen commitment:
C = sum(v_i * G_i) for i in 0..255
Where v_i is the child commitment (as a scalar) and G_i are fixed
generators on the Banderwagon curve. The commitment is binding and hiding.
Openings
State proofs are inner-product arguments:
- The prover computes an opening proof for each accessed stem (key prefix).
- Multiple openings are batched into a single multi-proof.
- The verifier checks the multi-proof against the root commitment carried in the block header.
Proof size: ~600 bytes for a single key access, ~1 KB for a typical transaction touching 5–10 keys. A hash-tree proof over the same access costs ~3–4 KB per key, so the reduction is 5–10×.
Migration
Transition from a hash-based Merkle Patricia Trie to the vector-commitment tree:
- Overlay period: new writes go to the vector-commitment tree; reads check it first and fall back to the MPT.
- Background conversion: a background process migrates MPT leaves into the vector-commitment tree.
- Cutover: once all state is migrated, the MPT is pruned and the vector-commitment root becomes the canonical state root.
- Duration: estimated 2–4 weeks for full migration on mainnet.
Light client protocol
Light clients verify state by:
- Downloading block headers, which carry the state root.
- Requesting openings for specific keys from full nodes.
- Verifying the openings locally against the state root.
No full state download is required. A light client can verify any account balance, storage slot, or contract code from a single proof request.
Security Considerations
- No trusted setup. Pedersen commitments on Banderwagon require none — the generators are derived deterministically. This is the property KZG-based alternatives do not have.
- Not post-quantum. Pedersen commitments rest on a discrete-log assumption and fall to a quantum adversary. A future migration to lattice-based commitments is the intended answer; until it lands, this tree's binding property is classical-only and must not be treated as a post-quantum guarantee.
- Migration safety. The overlay period ensures no state is lost during the transition: both the MPT root and the vector-commitment root are committed in block headers until cutover.
Reference
| Resource | Location |
|---|---|
| State tree implementation | github.com/luxfi/evm/trie/verkle/ |
| Banderwagon curve | github.com/luxfi/evm/crypto/verkle/ |
| Inner-product prover / verifier | github.com/luxfi/evm/crypto/ipa/ |
Copyright
Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.
Licensed under the MIT License.